Package elisa :: Package core :: Package tests :: Module test_input_provider :: Class MousePollInputProvider
[hide private]
[frames] | no frames]

Class MousePollInputProvider

source code


Nested Classes [hide private]

Inherited from component.Component: __metaclass__

Instance Methods [hide private]
 
create_input_event(self, data)
Translate external input data to an InputEvent object, understandable by the InputManager.
source code
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 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 component.Component: __classinit__

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

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

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from base_components.input_provider.InputProvider: origin, viewport

Inherited from component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

create_input_event(self, data)

source code 
Translate external input data to an InputEvent object, understandable by the InputManager. This method has to be overriden by InputProvider implementations. This method is called by InputProvider implementations.
Returns:
elisa.core.input_event.InputEvent
Overrides: base_components.input_provider.InputProvider.create_input_event
(inherited documentation)

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
Overrides: base_components.input_provider.PollInputProvider.get_input_events
(inherited documentation)