Keyboard API Function List

Initialization and Termination

KBDInitRegionUS Initializes keyboard maps for US region.
KBDInitRegionJP Initializes keyboard maps for JP region.
KBDInitRegionEU Initializes keyboard maps for EU region.
KBDInit Initializes the USB keyboard library.
KBDExit Terminates the USB keyboard library.

Synchronous Input

KBDGetKey Returns the key press (or release) that was stored at the head of the KBD library's low-level key queue. 

Asynchronous Input

KBDSetKeyCallback Registers a function to call when each physical key is pressed or released.

Conversion

KBDTranslateHidCode Given ah HID code, modifier state, and country code, returns the KBDUnicode value from the appropriate key map. 

Country Setting

KBDGetCountry Returns the country code for a keyboard channel.
KBDSetCountry Sets the country map to use for a keyboard channel.

Keyboard Status

KBDGetAccessSticky Get the sticky state of the keyboard (whether modifier keys toggle state or are transient).
KBDSetAccessSticky Set the sticky state of the keyboard.
KBDGetChannelStatus Get whether the keyboard channel is connected or disconnected.
KBDResetChannel Resets a keyboard to the initial state. Clears all queues.
KBDGetLockProcessing Get whether lock modifier processing is enabled or disabled.
KBDSetLockProcessing Set whether lock modifier processing is enabled or disabled.
KBDGetModState Get the current modifier state.
KBDSetModState Set the current modifier state.
KBDGetRepeat Get the current key repeat parameters.
KBDSetRepeat Set the current key repeat parameters.
KBDSetAttachCallback Registers a function to call when a USB keyboard is attached.
KBDSetDetachCallback Registers a function to call when a USB keyboard is detached.
KBDSetLeds Sends an LED command to a keyboard (blocking call).
KBDSetLedsAsync Sends an LED command to a keyboard (non-blocking call).
KBDSetLedsRetry Sends an LED command to a keyboard (non-blocking, retrying call).