diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2008-07-09 16:54:32 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2008-07-09 17:51:27 +0930 |
commit | 0211e3e8277c590349903989f1676f6af4baa44b (patch) | |
tree | bef8f31d29aa3975ba45da0850994ab1449f98b0 /src | |
parent | 7d5bb99ffce3200f82420c5a5ebac3b445aac633 (diff) |
Add XDevicePropertyNotifyEvent support.
Diffstat (limited to 'src')
-rw-r--r-- | src/XExtInt.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c index 5052b7f..2323ce8 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -849,6 +849,23 @@ XInputWireToEvent( *re = *save; return ENQUEUE_EVENT; } + case XI_DevicePropertyNotify: + { + XDevicePropertyNotifyEvent* dpn_event = + (XDevicePropertyNotifyEvent*)save; + devicePropertyNotifyEvent* dpn_wire = + (devicePropertyNotifyEvent*)event; + + dpn_event->extension = dpn_wire->extension; + dpn_event->evtype = dpn_wire->evtype; + dpn_event->time = dpn_wire->time; + dpn_event->deviceid = dpn_wire->deviceid; + dpn_event->atom = dpn_wire->atom; + dpn_event->state = dpn_wire->state; + + *re = *save; + return ENQUEUE_EVENT; + } default: printf("XInputWireToEvent: Unknown generic event. type %d\n", ge->evtype); |