efl.ecore_input
Module¶New in version 1.17.
This module provide access to the low-level input events, you usually don’t need to use this stuff, unless you need some sort of custom event handling.
To be informed about specific events just use one of the on_*_add(func, *args, **kargs) functions, the callback given will be fired when events occur.
Callback signature is:
func(event, *args, **kargs) → int
Where event
will be a class relative to the specific event (such as
EventKey
) All the additional arguments and keyword arguments passed
in the *_add function will be passed back in the callback.
In some events (EventKey at least) the callback function may return ecore.ECORE_CALLBACK_DONE or ecore.ECORE_CALLBACK_PASS_ON to block the event propagation down the chain or not.
To stop receiving event use efl.ecore.EventHandler.delete()
efl.ecore_input.
ECORE_EVENT_MODIFIER_SHIFT
¶efl.ecore_input.
ECORE_EVENT_MODIFIER_CTRL
¶efl.ecore_input.
ECORE_EVENT_MODIFIER_ALT
¶efl.ecore_input.
ECORE_EVENT_MODIFIER_WIN
¶efl.ecore_input.
ECORE_EVENT_MODIFIER_SCROLL
¶efl.ecore_input.
ECORE_EVENT_MODIFIER_NUM
¶efl.ecore_input.
ECORE_EVENT_MODIFIER_CAPS
¶efl.ecore_input.
ECORE_EVENT_LOCK_SCROLL
¶efl.ecore_input.
ECORE_EVENT_LOCK_NUM
¶efl.ecore_input.
ECORE_EVENT_LOCK_CAPS
¶efl.ecore_input.
ECORE_EVENT_LOCK_SHIFT
¶efl.ecore_input.
ECORE_EVENT_MODIFIER_ALTGR
¶efl.ecore_input.
EventKey
¶Bases: efl.ecore.Event
See also
Variables: |
|
---|
efl.ecore_input.
EventMouseButton
¶Bases: efl.ecore.Event
Variables: |
|
---|
efl.ecore_input.
EventMouseIO
¶Bases: efl.ecore.Event
See also
Variables: |
|
---|
efl.ecore_input.
EventMouseMove
¶Bases: efl.ecore.Event
See also
Variables: |
|
---|
efl.ecore_input.
EventMouseWheel
¶Bases: efl.ecore.Event
See also
Variables: |
|
---|
efl.ecore_input.
EventMulti
(int device, double radius, double radius_x, double radius_y, double pressure, double angle, double x, double y, double root_x, double root_y)¶Bases: object
Variables: |
|
---|
efl.ecore_input.
InputEventHandler
(int type, func, *args, **kargs)¶Bases: efl.ecore.EventHandler
You never instantiate this class directly, instead use one of the on_*_add() functions.
efl.ecore_input.
init
¶Initialize the Ecore Input library
Note
You never need to call this, it is automatically called at module import
efl.ecore_input.
on_key_down_add
¶Creates an ecore event handler for the ECORE_EVENT_KEY_DOWN event.
Returns: | InputEventHandler |
---|
See also
efl.ecore_input.
on_key_up_add
¶Creates an ecore event handler for the ECORE_EVENT_KEY_UP event.
Returns: | InputEventHandler |
---|
See also
Creates an ecore event handler for the ECORE_EVENT_MOUSE_BUTTON_DOWN event.
Returns: | InputEventHandler |
---|
See also
Create an ecore event handler for the ECORE_EVENT_MOUSE_BUTTON_UP event.
Returns: | InputEventHandler |
---|
See also
efl.ecore_input.
on_mouse_in_add
¶Create an ecore event handler for the ECORE_EVENT_MOUSE_IN event.
Returns: | InputEventHandler |
---|
See also
efl.ecore_input.
on_mouse_move_add
¶Create an ecore event handler for the ECORE_EVENT_MOUSE_MOVE event.
Returns: | InputEventHandler |
---|
See also
efl.ecore_input.
on_mouse_out_add
¶Create an ecore event handler for the ECORE_EVENT_MOUSE_OUT event.
Returns: | InputEventHandler |
---|
See also
efl.ecore_input.
on_mouse_wheel_add
¶Create an ecore event handler for the ECORE_EVENT_MOUSE_WHEEL event.
Returns: | InputEventHandler |
---|
See also
efl.ecore_input.
shutdown
¶Shutdown the Ecore Input library.
Note
You never need to call this, it is automatically called at exit