# Class e.c.i.InputEvent:

Part of elisa.core.input_event View In Hierarchy

InputEvent base class

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
--- | --- | --- | ---
73 | Method | __init__ | Create an InputEvent of a given type
101 | Method | __str__ | Undocumented
105 | Method | __eq__ | Undocumented
113 | Method | __ne__ | Undocumented

def __init__(self, source_type, event_type, value=EventValue.NONE, modifier=EventModifier.NONE):
Create an InputEvent of a given type

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

def __str__(self):
Undocumented
def __eq__(self, other):
Undocumented
def __ne__(self, other):
Undocumented