KBDGetChannelStatus

Syntax

#include <revolution/kbd.h>

KBDEc KBDGetChannelStatus(KBDChannel ch, KBDChanStatus *status);

Arguments

ch Keyboard channel to query.
status Pointer to a KBDChanStatus value to store the channel status.

Return Values

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 was out of range.
KBD_ERR_BAD_POINTER if status was not a valid pointer.

Description

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:

See Also

Keyboard API Function List

Revision History

2007/03/27 Initial version.


CONFIDENTIAL