KBDSetDetachCallback

Syntax

#include <cafe/kbd.h>

KBDDevCallbackF KBDSetDetachCallback (KBDDevCallbackF fn);

Parameters

fn Pointer to a function to callback when a USB keyboard device is physically detached.

Return Values

A pointer to the previous keyboard device detach callback.

Description

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.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.

Revision History

2013/05/08 Automated cleanup pass.
2011/12/21 Moved to Cafe.
2007/03/19 Initial version.


CONFIDENTIAL