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 Variablessourcesource device of the event (keyboard, mouse, ...)
typetype of event (KEY_UP, KEY_DOWN, ...)
valueevent's value (KEY_a, MOUSE_LEFT, ...)
modifierevent'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
def __init__(self, source_type, event_type, value=EventValue.NONE, modifier=EventModifier.NONE):
Create an InputEvent of a given type
Parameterssource_typesource device of the event (keyboard, mouse, ...) (type: EventSource )
event_typetype of event (key_up, key_down, ...) (type: EventType )
valueevent's value (KEY_a, MOUSE_LEFT, ...) (type: EventValue )
modifierevent's modifier, especially useful for keyboards (type: EventModifier )
RaisesValueErrorraised when either source, event_type or value is None
def __str__(self):
Undocumented
def __eq__(self, other):
Undocumented
def __ne__(self, other):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.