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()
Bases: efl.ecore.Event
Contains information about an Ecore keyboard event.
See also
| Variables: |
|
|---|
Bases: efl.ecore.Event
Contains information about an Ecore mouse button event.
| Variables: |
|
|---|
Bases: efl.ecore.Event
Contains information about an Ecore mouse input/output event.
See also
| Variables: |
|
|---|
Bases: efl.ecore.Event
Contains information about an Ecore mouse move event.
See also
| Variables: |
|
|---|
Bases: efl.ecore.Event
Contains information about an Ecore mouse wheel event.
See also
| Variables: |
|
|---|
Bases: object
| Variables: |
|
|---|
Bases: object
| Variables: |
|
|---|
Bases: efl.ecore.EventHandler
The event handler class
You never instantiate this class directly, instead use one of the on_*_add() functions.
init() Initialize the Ecore Input library
Note
You never need to call this, it is automatically called at module import
on_key_down_add(func, *args, **kargs)
Creates an ecore event handler for the ECORE_EVENT_KEY_DOWN event.
| Returns: | InputEventHandler |
|---|
See also
on_key_up_add(func, *args, **kargs)
Creates an ecore event handler for the ECORE_EVENT_KEY_UP event.
| Returns: | InputEventHandler |
|---|
See also
on_mouse_button_down_add(func, *args, **kargs)
Creates an ecore event handler for the ECORE_EVENT_MOUSE_BUTTON_DOWN event.
| Returns: | InputEventHandler |
|---|
See also
on_mouse_button_up_add(func, *args, **kargs)
Create an ecore event handler for the ECORE_EVENT_MOUSE_BUTTON_UP event.
| Returns: | InputEventHandler |
|---|
See also
on_mouse_in_add(func, *args, **kargs)
Create an ecore event handler for the ECORE_EVENT_MOUSE_IN event.
| Returns: | InputEventHandler |
|---|
See also
on_mouse_move_add(func, *args, **kargs)
Create an ecore event handler for the ECORE_EVENT_MOUSE_MOVE event.
| Returns: | InputEventHandler |
|---|
See also
on_mouse_out_add(func, *args, **kargs)
Create an ecore event handler for the ECORE_EVENT_MOUSE_OUT event.
| Returns: | InputEventHandler |
|---|
See also
on_mouse_wheel_add(func, *args, **kargs)
Create an ecore event handler for the ECORE_EVENT_MOUSE_WHEEL event.
| Returns: | InputEventHandler |
|---|
See also
shutdown() Shutdown the Ecore Input library.
Note
You never need to call this, it is automatically called at exit