KBDLedEvent structure

Syntax

#include <revolution/kbd/kbd.h>

typedef struct _KBDLedEvent {
  KBDChannel  channel;
  KBDLedState leds;
  KBDEc       rc;
} KBDLedEvent;

Description

The KBDLedEvent structure contains the keyboard channel, LED state, and a return code from the callback associated with KBDSetLedsAsync.

When the KBDSetLedsAsync function completes, it calls the callback that was passed to it with a pointer to this structure, as well as a pointer to the user-supplied argument.

The rc returned in the callback is either KBD_SUCCESS or KBD_BUSY. The return code KBD_SUCCESS means that the LED command was successfully sent to the keyboard. KBD_ERR_BUSY means that transmission of the command failed.

See Also

Keyboard Functions, KBDSetLedsAsync

Revision History

2007/03/20 Initial version.


CONFIDENTIAL