From 504a5a770bd1d34ea7edc3b94815b2b98a61afc0 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 13 Jul 2009 16:53:57 +1000 Subject: Add flags to XIDeviceEvent and XIRawEvent. Signed-off-by: Peter Hutterer --- include/X11/extensions/XInput2.h | 2 ++ src/XExtInt.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h index c6bfca0..1b46443 100644 --- a/include/X11/extensions/XInput2.h +++ b/include/X11/extensions/XInput2.h @@ -226,6 +226,7 @@ typedef struct { double root_y; double event_x; double event_y; + int flags; XIButtonState buttons; XIValuatorState valuators; XIModifierState mods; @@ -243,6 +244,7 @@ typedef struct { int deviceid; int sourceid; int detail; + int flags; XIValuatorState valuators; double *raw_values; } XIRawEvent; diff --git a/src/XExtInt.c b/src/XExtInt.c index 9eec866..7980340 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -1303,6 +1303,7 @@ wireToDeviceEvent(xXIDeviceEvent *in, XGenericEventCookie* cookie) out->root_y = FP1616toDBL(in->root_y); out->event_x = FP1616toDBL(in->event_x); out->event_y = FP1616toDBL(in->event_y); + out->flags = in->flags; out->mods.base = in->mods.base_mods; out->mods.locked = in->mods.locked_mods; out->mods.latched = in->mods.latched_mods; @@ -1560,6 +1561,7 @@ wireToRawEvent(xXIRawEvent *in, XGenericEventCookie *cookie) out->time = in->time; out->detail = in->detail; out->deviceid = in->deviceid; + out->flags = in->flags; out->valuators.mask_len = in->valuators_len * 4; out->valuators.mask = next_block(&ptr, out->valuators.mask_len); -- cgit v1.2.1