| Trees | Indices | Help |
|---|
|
|
object --+
|
UIElement.UIE --+
|
AEInput
Most abstract base class for all AEInput devices. Maintains a collection of Gesture listeners that can be notified using _notifyInputListeners. Defines simple init and close methods that change the state of the ready flag.
This class is abstract as most of its methods raise NotImplementedError and need to be overriden with input device specific code in subclasses.
|
|||
|
|||
|
|||
| list of string |
|
||
|
|||
|
|||
|
|||
| boolean |
|
||
|
|||
| list of integer |
|
||
| integer |
|
||
| string |
|
||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
| list of callable |
listeners Collection of listeners that are notified about Gestures on an input device |
||
| boolean |
ready Is the input device initialized? |
||
|
|||
|
Inherited from |
|||
|
|||
Initializes the listeners list to empty and sets the ready flag to False.
|
Called after the instance is created to initialize the device. If called when already initialized, this will restore the device to it's initialized state. May also be called to re-initialize the device after a call to close.
|
Gets a list of strings representing the capabilities of this device. Typical output capabilities include "system input," "braille," "switch," etc. though others are certainly possible. The DeviceManager will only load a device if another device doesn't already provide all of its capabilities.
|
Closes an initialized input device.
|
Adds a listener to be notified whenever a Gesture occurs on an input device. Listeners are called in the order they are added and are given the Gesture detected.
|
Removes an existing listener for Gestures.
|
Gets if there are any registered Gesture listeners for this device.
|
Notifies registered listeners about a Gesture seen on the input device. Catches all exceptions from the callback and logs them. |
Sorts the actions in the given AEInput.Gesture and returns them as a list of integers. The sort is done on a copy so the action codes held by the provided AEInput.Gesture are not touched.
|
Abstract method. Gets the maximum number of actions that can be in a Gesture on this input device.
|
Abstract method. Gets a human readable representation of the given Gesture. |
Abstract method. Registers KEY_CMD with device .
|
Abstract method. Unregisters KEY_CMD with device .
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Mon Jun 4 15:33:16 2007 | http://epydoc.sourceforge.net |