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:
AtspiKeyCallbackThe function to call when the given key is pressed.
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:
GDestroyNotifyCallback function to be called when
callbackis destroyed.