#include <cafe/kbd.h> KBDDevCallbackF KBDSetDetachCallback (KBDDevCallbackF fn);
|fn||Pointer to a function to callback when a USB keyboard device is physically detached.|
A pointer to the previous keyboard device detach callback.
Registers a function with the USB keyboard library to call whenever a USB keyboard device is detached. The function pointer typedef
KBDDevCallbackF is defined as follows.
typedef void (*KBDDevCallbackF) (KBDDevEvent*);
The fn function is called with a pointer to a
KBDDevEvent structure that contains the channel (keyboard) that was detached.
|Background||Do not call this function from the background.|
|Multiple threads||This function is not thread-safe.|
2013/05/08 Automated cleanup pass.
2011/12/21 Moved to Cafe.
2007/03/19 Initial version.