#include <cafe/kbd.h> KBDEc KBDGetModState(KBDChannel ch, KBDModState *modState);
|ch||Keyboard channel to query.|
|modState||Pointer to a
|KBDEc||Keyboard error code.
Returns the current modifier key state of the USB keyboard on channel ch. The returned state is written to the area pointed to by modState.
The modifier key state is used by
KBDTranslateHidCode to correctly translate HID codes into Unicodes. It also determines the state of the appropriate keyboard LEDs.
|Background||Do not call this function from the background.|
2013-05-08 Automated cleanup pass.
2013-01-13 Removed KBD_ERR_BAD_POINTER.
2011-12-21 Moved to Cafe.
2007-03-27 Initial version.