import "Accessibility_Registry.idl";
Public Member Functions | |
boolean | registerKeystrokeListener (in DeviceEventListener listener, in KeySet keys, in ControllerEventMask mask, in KeyEventTypeSeq type, in EventListenerMode mode) |
void | deregisterKeystrokeListener (in DeviceEventListener listener, in KeySet keys, in ControllerEventMask mask, in KeyEventTypeSeq type) |
boolean | registerDeviceEventListener (in DeviceEventListener listener, in EventTypeSeq typeseq) |
void | deregisterDeviceEventListener (in DeviceEventListener listener, in EventTypeSeq typeseq) |
boolean | notifyListenersSync (in DeviceEvent event) |
oneway void | notifyListenersAsync (in DeviceEvent event) |
void | generateKeyboardEvent (in long keycode, in string keystring, in KeySynthType type) |
void | generateMouseEvent (in long x, in long y, in string eventName) |
boolean Accessibility::DeviceEventController::registerKeystrokeListener | ( | in DeviceEventListener | listener, | |
in KeySet | keys, | |||
in ControllerEventMask | mask, | |||
in KeyEventTypeSeq | type, | |||
in EventListenerMode | mode | |||
) |
Register to intercept keyboard events, and either pass them on or consume them.
listener,: | a DeviceEventListener which will intercept key events. | |
keys,: | a KeySet indicating which keys to intercept, or KEYSET_ALL_KEYS. | |
mask,: | a ControllerEventMask filtering the intercepted key events. | |
type,: | a KeyEventTypeSeq that may created by ORing event types together. | |
mode,: | an EventListenerMode indicating whether the listener should receive the events synchronously, potentially consuming them, or just be notified asynchronously of those events that have been generated. |
True
if the DeviceEventListener was successfully registered for the requested KeySet, ControllerEventMask, event types, and EventListenerMode; otherwise returns False
. void Accessibility::DeviceEventController::deregisterKeystrokeListener | ( | in DeviceEventListener | listener, | |
in KeySet | keys, | |||
in ControllerEventMask | mask, | |||
in KeyEventTypeSeq | type | |||
) |
De-register a previously registered keyboard eventlistener.
listener,: | a DeviceEventListener which will intercept key events. | |
keys,: | a KeySet indicating which keys to intercept, or KEYSET_ALL_KEYS. | |
mask,: | a ControllerEventMask filtering the intercepted key events. | |
type,: | an EventType mask that may created by ORing event types together. |
boolean Accessibility::DeviceEventController::registerDeviceEventListener | ( | in DeviceEventListener | listener, | |
in EventTypeSeq | typeseq | |||
) |
Register to intercept events, and either pass them on or consume them. To listen to keyboard events use registerKeystrokeListener instead.
listener,: | a DeviceEventListener which will intercept events. | |
typeseq,: | an EventTypeSeq indicating which event types to listen for. |
True
if successful, False
if not void Accessibility::DeviceEventController::deregisterDeviceEventListener | ( | in DeviceEventListener | listener, | |
in EventTypeSeq | typeseq | |||
) |
De-register a previously registered keyboard eventlistener.
listener,: | a DeviceEventListener which will intercept events. | |
typeseq,: | an EventTypeSeq indicating which event types to stop listening for. |
boolean Accessibility::DeviceEventController::notifyListenersSync | ( | in DeviceEvent | event | ) |
Notify the Registry instance that a device event has taken place, and allow pre-emptive listeners the opportunity to 'consume' the event and thus prevent its further issuance/forwarding. This is the method used by accessibility bridges to forward "toolkit dependent" device events to the Registry from the application's process space.
True
if the event was consumed by a (pre-emptive) listener, False
if not (in which case the device event will be forwarded as normal to any application which would normally receive it, e.g. the currently active application in the case of mouse or keyboard events). oneway void Accessibility::DeviceEventController::notifyListenersAsync | ( | in DeviceEvent | event | ) |
Notify the Registry instance that a device event has taken place in an asynchronous manner. This is the method used by accessibility bridges to forward "toolkit dependent" device events to the Registry from the application's process space. If the event in question is potentially pre-emptible. notifyListenersSync should be used instead.
void Accessibility::DeviceEventController::generateKeyboardEvent | ( | in long | keycode, | |
in string | keystring, | |||
in KeySynthType | type | |||
) |
Synthesize a keyboard event.
keycode,: | a long integer indicating the keycode of the keypress to be synthesized. | |
keystring,: | an optional UTF-8 string indicating a complex keyboard input event. | |
type,: | a KeySynthType indicating the type of event(s) to be synthesized: a key press, release, press-release pair, or a complex input string (for instance from an internationalized or complex text input method, or a composed character). |
type
. void Accessibility::DeviceEventController::generateMouseEvent | ( | in long | x, | |
in long | y, | |||
in string | eventName | |||
) |
Synthesize a mouse event.
x,: | a long integer indicating the screen x coord for the mouse event. | |
y,: | a long integer indicating the screen y coord for the mouse event. | |
eventName,: | a string indicating the type of mouse event, e.g. "button1up" |