Xi: remove raw device events.
Need to be better refined.
This commit is contained in:
parent
b35a9efa16
commit
c99a9a9729
21
Xi/extinit.c
21
Xi/extinit.c
|
@ -138,7 +138,6 @@ Mask ExtExclusiveMasks[EMASKSIZE];
|
||||||
static Mask xi_filters[4] = {
|
static Mask xi_filters[4] = {
|
||||||
XI_DeviceHierarchyChangedMask,
|
XI_DeviceHierarchyChangedMask,
|
||||||
XI_DeviceClassesChangedMask,
|
XI_DeviceClassesChangedMask,
|
||||||
XI_RawDeviceEventMask,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct dev_type
|
static struct dev_type
|
||||||
|
@ -675,23 +674,6 @@ SDeviceLeaveNotifyEvent (deviceLeaveNotify *from, deviceLeaveNotify *to)
|
||||||
swaps(&to->eventY, n);
|
swaps(&to->eventY, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
SRawDeviceEvent(rawDeviceEvent* from, rawDeviceEvent *to)
|
|
||||||
{
|
|
||||||
char n;
|
|
||||||
int i;
|
|
||||||
CARD32* valptr;
|
|
||||||
|
|
||||||
|
|
||||||
*to = *from;
|
|
||||||
swaps(&to->sequenceNumber, n);
|
|
||||||
swapl(&to->length, n);
|
|
||||||
swapl(&to->evtype, n);
|
|
||||||
valptr = &to->valuator0;
|
|
||||||
for (i = 0; i < from->num_valuators; i++, valptr++)
|
|
||||||
swapl(valptr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SDeviceClassesChangedEvent(deviceClassesChangedEvent* from,
|
SDeviceClassesChangedEvent(deviceClassesChangedEvent* from,
|
||||||
deviceClassesChangedEvent* to)
|
deviceClassesChangedEvent* to)
|
||||||
|
@ -1169,9 +1151,6 @@ XIGEEventSwap(xGenericEvent* from, xGenericEvent* to)
|
||||||
swaps(&from->sequenceNumber, n);
|
swaps(&from->sequenceNumber, n);
|
||||||
switch(from->evtype)
|
switch(from->evtype)
|
||||||
{
|
{
|
||||||
case XI_RawDeviceEvent:
|
|
||||||
SRawDeviceEvent((rawDeviceEvent*)from, (rawDeviceEvent*)to);
|
|
||||||
break;
|
|
||||||
case XI_DeviceClassesChangedNotify:
|
case XI_DeviceClassesChangedNotify:
|
||||||
SDeviceClassesChangedEvent((deviceClassesChangedEvent*)from,
|
SDeviceClassesChangedEvent((deviceClassesChangedEvent*)from,
|
||||||
(deviceClassesChangedEvent*)to);
|
(deviceClassesChangedEvent*)to);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user