#include <cafe/kbd.h> KBDEc KBDGetChannelStatus(KBDChannel ch, KBDChanStatus *status);
|ch||Keyboard channel to query.|
|status||Pointer to a
|KBDEc||Keyboard error code.
Returns the current status of the USB keyboard on channel ch. The returned status is written to the area pointed to by status. The channel status is a bit vector with the following possible values:
KBD_CS_OK: The keyboard is connected and working normally.
KBD_CS_DISCONNECTED: The keyboard is not connected.
KBD_CS_ROLL_OVER: Too many keys are currently pressed down.
KBD_CS_ERROR: Either a keyboard POST (power-on self-test) failure or other undefined error has occurred.
|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.