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

Class PushInputProvider

source code


InputProvider that will be able to push InputEvents directly to the InputManager by method calls (input_manager.process_event). This class should be used to support input devices that can't be polled for events.

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
clean(self)
Additional cleanups to default Component's cleanup: disconnect our handlers from external component signals.
source code
 
bind(self)
Subscribe to the input device
source code
 
unbind(self)
Unsubscribe from the input device
source code

Inherited from InputProvider: create_input_event

Inherited from core.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 core.component.Component: __classinit__

Class Variables [hide private]
string name = 'push_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]
elisa.core.input_manager.InputManager input_manager
the InputManager the Provider is registered with

Inherited from InputProvider: origin, viewport

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

clean(self)

source code 
Additional cleanups to default Component's cleanup: disconnect our handlers from external component signals.
Overrides: core.component.Component.clean

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.

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.