Part of elisa.core.input_manager View In Hierarchy
InputManager provides a common place to retrieve input events coming
from a GUI toolkit, additional input sources or even a network. InputEvents
can be pushed by elisa.core.components.input_provider.InputProviders
or be polled by the InputManager, depending on the implementation chosen:
elisa.core.components.input_provider.PollInputProvider
or elisa.core.components.input_provider.PushInputProvider.
elisa.core.input_event.InputEvents
coming from elisa.core.components.input_provider.InputProviders
are received.
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 51 | Method | __init__ | Initialize the _components instance variable and the |
| 59 | Method | start | Start a polling loop that will regularly check the registered |
| 68 | Method | stop | Clean all the registered |
| 81 | Method | process_event | Fire the signal corresponding to the event. |
| 101 | Method | register_component | Register a new InputProvider in the InputManager so that the |
| 116 | Method | unregister_component | Clean the InputProvider and unregister it from the InputManager; |
| 128 | Method | _check_polling | Undocumented |
| 143 | Method | _poll_events | Poll each registered PollInputProvider for InputEvents to |
Inherited from Manager:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 63 | Method | load_components | Load a list of components in sequence. |
elisa.core.components.input_provider.PollInputProviders
for new elisa.core.input_event.InputEvents.
elisa.core.components.input_provider.InputProviders
and stop polling for new elisa.core.input_event.InputEvents.
Fire the signal corresponding to the event.
Each event type is mapped to a signal instance to which other elisa components can connect (e.g to monitor user key presses).
This method can be called byelisa.core.components.input_provider.PushInputProvider
components when they receive input data from the input device.
| Parameters | event | the event to process
(type: elisa.core.input_event.InputEvent
) |
| Parameters | component | the InputProvider instance to register
(type: elisa.core.components.input_provider.InputProvider
) |
| Parameters | component | the InputProvider instance to unregister
(type: elisa.core.components.input_provider.InputProvider
) |