Part of elisa.core.input_event View In Hierarchy
Each InputProvider component is able to build them and feed the InputManager with them. This class should allow us to abstract any kind of input event that can be injected in Elisa.
Instance Variables | source | source device of the event (keyboard, mouse, ...) |
type | type of event (KEY_UP, KEY_DOWN, ...) | |
value | event's value (KEY_a, MOUSE_LEFT, ...) | |
modifier | event's modifier, especially useful for keyboards |
Line # | Kind | Name | Docs |
---|---|---|---|
74 | Method | __init__ | Create an InputEvent of a given type |
102 | Method | __str__ | Undocumented |
106 | Method | __eq__ | Undocumented |
114 | Method | __ne__ | Undocumented |
Parameters | source_type | source device of the event (keyboard, mouse, ...)
(type: EventSource
) |
event_type | type of event (key_up, key_down, ...)
(type: EventType
) | |
value | event's value (KEY_a, MOUSE_LEFT, ...)
(type: EventValue
) | |
modifier | event's modifier, especially useful for keyboards
(type: EventModifier
) | |
Raises | ValueError | raised when either source, event_type or value is None |