#include <revolution/kbd.h> KBDEc KBDGetLockProcessing(KBDChannel ch, BOOL *enable);
| ch | Keyboard channel to query. |
|---|---|
| enable | Pointer to a BOOL value for storing the modifier processing state. |
| KBDEc | Keyboard error code.KBD_SUCCESS if the call was successful.KBD_ERR_NOT_INITIALIZED if the library was not initialized.KBD_ERR_BAD_VALUE if ch is out of range.KBD_ERR_BAD_POINTER if enable is not a valid pointer. |
|---|
Returns the current lock modifier processing state of the USB keyboard on channel ch. The returned state is written to the area pointed to by enable.
If the lock modifier processing state is TRUE, the KBD library processes all modifier keys as usual and sets the KBDModState accordingly. A lock modifier processing state of FALSE means that the KBD library will not process the locking modifier key presses, and the following KBDModState will be left unchanged:
KBD_MS_CAPS_LOCKKBD_MS_NUM_LOCKKBD_MS_SCROLL_LOCKKBD_MS_LANG1KBD_MS_LANG2Processing of other KBDModState is still handled routinely. That is, pressing the Shift key will still set the KBD_MS_SHIFT bit in KBDModState regardless of the lock modifier processing state. The KBDModState is used to convert HID code to Unicode.
2007/03/27 Initial version.
CONFIDENTIAL