#include <revolution/kbd.h>
KBDDevCallbackF KBDSetAttachCallback (KBDDevCallbackF fn);
fn |
Pointer to a function to callback when a USB keyboard device is physically attached. |
KBDDevCallbackF |
A pointer to the previous keyboard device attach callback. |
Registers a function with the USB keyboard library to call whenever a USB keyboard device is attached. The function pointer typedef KBDDevCallbackF is defined as follows.
typedef struct _KBDDevEvent {
KBDChannel channel;
} KBDDevEvent;
typedef void (*KBDDevCallbackF) (KBDDevEvent*);
The function fn is called with pointer to a KBDDevEvent structure that contains the channel (keyboard) that was attached.
2007/03/19 Initial version.