Method
AtspiDeviceadd_key_watcher
Declaration [src]
void
atspi_device_add_key_watcher (
AtspiDevice* device,
AtspiKeyCallback callback,
void* user_data,
GDestroyNotify callback_destroyed
)
Description [src]
Add a callback that will receive a notification whenever a key is pressed or released.
Parameters
callback
-
Type:
AtspiKeyCallback
The function to call when the given key is pressed.
The argument can be NULL
. user_data
-
Type:
void*
Data to be passed to
callback
.The argument can be NULL
.The data is owned by the caller of the method. callback_destroyed
-
Type:
GDestroyNotify
Callback function to be called when
callback
is destroyed.