summaryrefslogtreecommitdiff
path: root/src/lib/ecore_input
diff options
context:
space:
mode:
authorGuilherme Iscaro <iscaro@profusion.mobi>2016-09-20 13:57:49 -0300
committerBruno Dilly <bdilly@profusion.mobi>2016-09-26 22:06:59 -0300
commitf4ff8fd4d5019503d5f50d57d357ba37048c45e0 (patch)
treeba4ac1d0faaf7f9ed5b12caa38ae8371bd68d52c /src/lib/ecore_input
parentbc6e8d2692084a808c0cf7012e7db4a9849601e7 (diff)
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.
Diffstat (limited to 'src/lib/ecore_input')
-rw-r--r--src/lib/ecore_input/Ecore_Input.h16
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 @@
9 9
10#include <Eina.h> 10#include <Eina.h>
11 11
12#include <Eo.h>
13
12#ifdef EAPI 14#ifdef EAPI
13# undef EAPI 15# undef EAPI
14#endif 16#endif
@@ -209,6 +211,8 @@ extern "C" {
209 unsigned int keycode; /**< Key scan code numeric value @since 1.10 */ 211 unsigned int keycode; /**< Key scan code numeric value @since 1.10 */
210 212
211 void *data; /**< User data associated with an Ecore_Event_Key @since 1.10 */ 213 void *data; /**< User data associated with an Ecore_Event_Key @since 1.10 */
214
215 Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */
212 }; 216 };
213 217
214 /** 218 /**
@@ -245,6 +249,8 @@ extern "C" {
245 double x, y; 249 double x, y;
246 } root; /**< same as root.x, root.y, but with sub-pixel precision, if available */ 250 } root; /**< same as root.x, root.y, but with sub-pixel precision, if available */
247 } multi; 251 } multi;
252
253 Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */
248 }; 254 };
249 255
250 /** 256 /**
@@ -270,6 +276,8 @@ extern "C" {
270 int x; 276 int x;
271 int y; 277 int y;
272 } root; /**< Coordinates relative to root window */ 278 } root; /**< Coordinates relative to root window */
279
280 Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */
273 }; 281 };
274 282
275 /** 283 /**
@@ -304,6 +312,8 @@ extern "C" {
304 double x, y; 312 double x, y;
305 } root; 313 } root;
306 } multi; 314 } multi;
315
316 Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */
307 }; 317 };
308 318
309 typedef enum _Ecore_Axis_Label 319 typedef enum _Ecore_Axis_Label
@@ -344,6 +354,8 @@ extern "C" {
344 354
345 int naxis; 355 int naxis;
346 Ecore_Axis *axis; 356 Ecore_Axis *axis;
357
358 Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */
347 }; 359 };
348 360
349 /** 361 /**
@@ -360,6 +372,8 @@ extern "C" {
360 372
361 int x; /**< x coordinate relative to window where event happened */ 373 int x; /**< x coordinate relative to window where event happened */
362 int y; /**< y coordinate relative to window where event happened */ 374 int y; /**< y coordinate relative to window where event happened */
375
376 Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */
363 }; 377 };
364 378
365 /** 379 /**
@@ -396,6 +410,8 @@ extern "C" {
396 double value; /* [0.0 .. 1.0] 0.0 == fully unpressed, 1.0 == fully pressed */ 410 double value; /* [0.0 .. 1.0] 0.0 == fully unpressed, 1.0 == fully pressed */
397 } button; 411 } button;
398 }; 412 };
413
414 Eo *dev; /**< The Efl_Input_Device that originated the event @since 1.19 */
399 }; 415 };
400 416
401 /** 417 /**