summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-02-14 09:20:53 +1030
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-02-14 09:20:53 +1030
commitd97dcf6896a1c16b46068d16d3d689a3720cce46 (patch)
treee8007379d58e707ceb07fcb3eba804bd822baeed /src
parent447441f4dfdd114ce1f738ccfda097ca1f4d609a (diff)
Remove RawDeviceEvent parsing. These events have been removed.
Diffstat (limited to 'src')
-rw-r--r--src/XExtInt.c29
-rw-r--r--src/XExtToWire.c24
2 files changed, 0 insertions, 53 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c
index 0e16baa..8d5ec3d 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -795,35 +795,6 @@ XInputWireToEvent(dpy, re, event)
*re = *save;
return ENQUEUE_EVENT;
}
- case XI_RawDeviceEvent:
- {
- XRawDeviceEvent* raw_event =
- (XRawDeviceEvent*)save;
- rawDeviceEvent* raw_wire =
- (rawDeviceEvent*)event;
-
- raw_event->extension = raw_wire->extension;
- raw_event->evtype = raw_wire->evtype;
- raw_event->num_valuators = raw_wire->num_valuators;
- raw_event->first_valuator = raw_wire->first_valuator;
- raw_event->buttons = raw_wire->buttons;
- raw_event->deviceid = raw_wire->deviceid;
- raw_event->event_type = raw_wire->event_type;
- if (raw_event->num_valuators)
- {
- int i;
- CARD32* valptr;
- raw_event->valuators =
- calloc((raw_event->num_valuators), sizeof(int));
- valptr = &raw_wire->valuator0;
- for (i = 0; i < raw_event->num_valuators; i++,
- valptr++)
- raw_event->valuators[i] = *valptr;
- } else
- raw_event->valuators = NULL;
- *re = *save;
- return ENQUEUE_EVENT;
- }
default:
printf("XInputWireToEvent: Unknown generic event. type %d\n", ge->evtype);
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));
}