1 #ifndef _SPI_LISTENER_H_
2 #define _SPI_LISTENER_H_
4 #include <cspi/spi-impl.h>
9 * Structure used to encapsulate event information
19 SPI_KEY_PRESSED = 1<<0,
20 SPI_KEY_RELEASED = 1<<1
21 } AccessibleKeyEventType;
27 AccessibleKeyEventType type;
28 unsigned short modifiers;
29 } AccessibleKeystroke;
32 * Function prototype typedefs for Event Listener Callbacks.
33 * (see libspi/accessibleeventlistener.h for definition of SpiVoidEventListenerCB).
35 * usage: signatures should be
36 * void (*AccessibleEventListenerCB) (AccessibleEvent *event);
38 * boolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystrokeEvent *Event);
40 typedef void (*AccessibleEventListenerCB) (AccessibleEvent *event);
41 typedef boolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystroke *stroke);