From f41d153886c3519ebaf767f9c0d3281b6adce030 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 29 Jul 2008 08:58:53 +0930 Subject: Add DeviceControlChanged define. This value is used for the devchange field in the DevicePresenceNotify event when a device's control has been modified. (cherry picked from commit 0daf8328cfa90b038753fc409c5eb05ba3fac6d5) --- XI.h | 3 ++- XIproto.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/XI.h b/XI.h index 3b11860..51a4175 100644 --- a/XI.h +++ b/XI.h @@ -250,7 +250,8 @@ SOFTWARE. #define DeviceRemoved 1 #define DeviceEnabled 2 #define DeviceDisabled 3 -#define DeviceUnrecoverable 4 +#define DeviceUnrecoverable 4 +#define DeviceControlChanged 5 #define XI_BadDevice 0 #define XI_BadEvent 1 diff --git a/XIproto.h b/XIproto.h index 4f46f4f..6d4bf64 100644 --- a/XIproto.h +++ b/XIproto.h @@ -1600,7 +1600,7 @@ typedef struct BYTE pad00; CARD16 sequenceNumber B16; Time time B32; - BYTE devchange; /* Device{Added|Removed|Enabled|Disabled} */ + BYTE devchange; /* Device{Added|Removed|Enabled|Disabled|ControlChanged} */ BYTE deviceid; CARD16 control B16; CARD32 pad02 B32; -- cgit v1.2.3