Util.addKeyEventListener

Adds the specified function to the list of functions to be called when a key event occurs. The @data element will be passed to the #AtkKeySnoopFunc (@listener) as the @func_data param, on notification.

struct Util
static
uint
addKeyEventListener
(
AtkKeySnoopFunc listener
,
void* data
)

Parameters

listener AtkKeySnoopFunc

the listener to notify

data void*

a #gpointer that points to a block of data that should be sent to the registered listeners, along with the event notification, when it occurs.

Return Value

Type: uint

added event listener id, or 0 on failure.

Meta