Package elisa :: Package base_components :: Module input_provider :: Class PollInputProvider
[hide private]
[frames] | no frames]

Class PollInputProvider

source code


Non-blocking way to retrieve user input events. Plugins can provide InputProviders to support new input devices (remote controls, wiimote, gyro mouse, joystick, ...)

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
elisa.core.input_event.InputEvent list
get_input_events(self)
Retrieve events from an input device and translate them in elisa.core.input_event.InputEvent objects understandable by the InputManager.
source code

Inherited from InputProvider: create_input_event

Inherited from core.component.Component: __init__, clean, initialize, load_config, save_config

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
string name = 'poll_input_provider'
Component's name

Inherited from core.component.Component: checked, config_doc, default_config, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from InputProvider: origin, viewport

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get_input_events(self)

source code 
Retrieve events from an input device and translate them in elisa.core.input_event.InputEvent objects understandable by the InputManager. The returned list can be built with the create_input_event() method, for each data retrieved from the input device.
Returns: elisa.core.input_event.InputEvent list
Input events from a user-input device