From b12514254cb1d2b91381b59251440b22e36052fb Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 2 May 2007 09:43:48 +0930 Subject: [PATCH] Providing a device id for a RawDeviceEvent may not be a bad idea. --- XInput.h | 1 + XIproto.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/XInput.h b/XInput.h index 7f6fcb9..c4318e3 100644 --- a/XInput.h +++ b/XInput.h @@ -539,6 +539,7 @@ typedef struct { Display *display; /* Display the event was read from */ int extension; /* XI extension offset */ int evtype; /* XI_RawDeviceEvent */ + int deviceid; int buttons; int num_valuators; int first_valuator; diff --git a/XIproto.h b/XIproto.h index 918aae3..9dfec78 100644 --- a/XIproto.h +++ b/XIproto.h @@ -2014,7 +2014,7 @@ typedef struct CARD8 buttons; CARD8 num_valuators; CARD8 first_valuator; - CARD8 pad0; + CARD8 deviceid; CARD16 pad1; CARD32 valuator0 B32; CARD32 valuator1 B32; -- 2.7.4