Table Of Contents

Previous topic

ioHub Devices and Device Events

Next topic

Mouse Device and Events

This Page

Quick links

Keyboard Device

The iohub Keyboard device provides methods to:
  • Check for any new keyboard events that have occurred since the last time keyboard events were checked or cleared.
  • Wait until a keyboard event occurs.
  • Clear the device of any unread events.
  • Get a list of all currently pressed keys.

Keyboard Events

The Keyboard device can return two types of events, which represent key press and key release actions on the keyboard.

KeyboardPress Event

KeyboardRelease Event