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

Class MousePushInputProvider

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
 
bind(self)
Subscribe to the input device
source code
 
unbind(self)
Unsubscribe from the input device
source code
 
trigger_some_events(self) source code

Inherited from base_components.input_provider.PushInputProvider: clean

Inherited from component.Component: __init__, 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 = 'push_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.PushInputProvider: input_manager

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)

bind(self)

source code 

Subscribe to the input device

This can be done by connecting external component signals to our handlers or register a local callback that will be called by the external component when it receives an input event.

This method must be overriden by implementation because it's totally dependent on the infrastructure used by the input device the component supports.
Overrides: base_components.input_provider.PushInputProvider.bind
(inherited documentation)

unbind(self)

source code 

Unsubscribe from the input device

This can be done by disconnecting our handlers from the external component signals or unregistering the local callback previously registered by the register() method.

This method must be overriden by implementation because it's totally dependent on the infrastructure used by the input device the component supports.
Overrides: base_components.input_provider.PushInputProvider.unbind
(inherited documentation)