# Class e.c.t.t.MousePollInputProvider(input_provider.PollInputProvider):

Part of elisa.core.tests.test_input_provider View In Hierarchy

Undocumented

Line # | Kind | Name | Docs
--- | --- | --- | ---
38 | Method | create_input_event | Translate external input data to an InputEvent object,
41 | Method | get_input_events | Retrieve events from an input device and translate them in

Inherited from Component (via PollInputProvider, InputProvider):

Line # | Kind | Name | Docs
--- | --- | --- | ---
85 | Class | PathDescriptor | Undocumented
97 | Class Method | create | Create and initialize the component.
130 | Method | initialize | Initialize the component.
142 | Method | clean | Clean the component.

Inherited from Loggable (via PollInputProvider, InputProvider, Component):

Line # | Kind | Name | Docs
--- | --- | --- | ---
81 | Method | __init__ | Undocumented

def create_input_event(self, data):
overrides elisa.core.components.input_provider.InputProvider.create_input_event
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.

Parameters | data | the data to translate, can be of any type
Returns | `elisa.core.input_event.InputEvent`

def get_input_events(self):
overrides elisa.core.components.input_provider.PollInputProvider.get_input_events
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 | Input events from a user-input device (type: `elisa.core.input_event.InputEvent` list )