summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2008-07-29 08:58:53 +0930
committerPeter Hutterer <peter.hutterer@who-t.net>2008-07-29 09:09:43 +0930
commitf41d153886c3519ebaf767f9c0d3281b6adce030 (patch)
treea9f879c61535ca536e3bc20a3e83dfa33172043b
parent852568991b251e9366da167f1b746a0a1db6adf0 (diff)
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)
-rw-r--r--XI.h3
-rw-r--r--XIproto.h2
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;