diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-14 09:20:53 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-14 09:20:53 +1030 |
commit | d97dcf6896a1c16b46068d16d3d689a3720cce46 (patch) | |
tree | e8007379d58e707ceb07fcb3eba804bd822baeed /src/XExtToWire.c | |
parent | 447441f4dfdd114ce1f738ccfda097ca1f4d609a (diff) |
Remove RawDeviceEvent parsing. These events have been removed.
Diffstat (limited to 'src/XExtToWire.c')
-rw-r--r-- | src/XExtToWire.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/XExtToWire.c b/src/XExtToWire.c index 1cfaf20..89fa92a 100644 --- a/src/XExtToWire.c +++ b/src/XExtToWire.c @@ -512,30 +512,6 @@ _XiEventToWire(dpy, re, event, count) dhcev->time = ev->time; break; } - case XI_RawDeviceEvent: - { - int i; - CARD32* valptr; - XRawDeviceEvent* ev = (XRawDeviceEvent*)re; - rawDeviceEvent* rev; - *count = 1; - rev = (rawDeviceEvent*)Xmalloc(*count * (sizeof(xEvent) + ev->num_valuators * sizeof(CARD32))); - if (!rev) - return (_XUnknownNativeEvent(dpy, re, *event)); - - *event = (xEvent*)rev; - rev->type = ev->type; - rev->extension = ev->extension; - rev->deviceid = ev->deviceid; - rev->buttons = ev->buttons; - rev->num_valuators = ev->num_valuators; - rev->first_valuator = ev->first_valuator; - rev->event_type = ev->event_type; - valptr = &rev->valuator0; - for(i = 0; i < ev->num_valuators; i++, valptr++) - *valptr = ev->valuators[i]; - break; - } default: return (_XUnknownNativeEvent(dpy, re, *event)); } |