diff options
author | Guilherme Iscaro <iscaro@profusion.mobi> | 2016-09-20 13:57:49 -0300 |
---|---|---|
committer | Bruno Dilly <bdilly@profusion.mobi> | 2016-09-26 22:06:59 -0300 |
commit | f4ff8fd4d5019503d5f50d57d357ba37048c45e0 (patch) | |
tree | ba4ac1d0faaf7f9ed5b12caa38ae8371bd68d52c | |
parent | bc6e8d2692084a808c0cf7012e7db4a9849601e7 (diff) | |
download | efl-f4ff8fd4d5019503d5f50d57d357ba37048c45e0.tar.gz |
Ecore_Input: Add Efl_Input_Device in Ecore_Events structs.
The Efl_Input_Device will contain the device which originated the event,
this will be useful for dealing with multi-seat environment. When the device
is NULL it means that the event originated from the default seat.
-rw-r--r-- | src/lib/ecore_input/Ecore_Input.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_input/Ecore_Input.h b/src/lib/ecore_input/Ecore_Input.h index 1122b6457c..6486c1328f 100644 --- a/src/lib/ecore_input/Ecore_Input.h +++ b/src/lib/ecore_input/Ecore_Input.h @@ -9,6 +9,8 @@ #include <Eina.h> +#include <Eo.h> + #ifdef EAPI # undef EAPI #endif @@ -209,6 +211,8 @@ extern "C" { unsigned int keycode; /**< Key scan code numeric value @since 1.10 */ void *data; /**< User data associated with an Ecore_Event_Key @since 1.10 */ + + Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */ }; /** @@ -245,6 +249,8 @@ extern "C" { double x, y; } root; /**< same as root.x, root.y, but with sub-pixel precision, if available */ } multi; + + Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */ }; /** @@ -270,6 +276,8 @@ extern "C" { int x; int y; } root; /**< Coordinates relative to root window */ + + Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */ }; /** @@ -304,6 +312,8 @@ extern "C" { double x, y; } root; } multi; + + Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */ }; typedef enum _Ecore_Axis_Label @@ -344,6 +354,8 @@ extern "C" { int naxis; Ecore_Axis *axis; + + Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */ }; /** @@ -360,6 +372,8 @@ extern "C" { int x; /**< x coordinate relative to window where event happened */ int y; /**< y coordinate relative to window where event happened */ + + Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */ }; /** @@ -396,6 +410,8 @@ extern "C" { double value; /* [0.0 .. 1.0] 0.0 == fully unpressed, 1.0 == fully pressed */ } button; }; + + Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */ }; /** |