summaryrefslogtreecommitdiff
path: root/XInput.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-10-20 00:33:13 +0300
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-10-20 00:33:13 +0300
commit1fab95863efc2bbf9a5b836b3de31da4a956b4bd (patch)
treef1d764dd43b82e59d8a4ed8f98e457ecf7d60fe3 /XInput.h
parent926251a486b57197d735a426887acad6fdfd7dc6 (diff)
add DEVICE_ENABLE control, add core indication
Add DEVICE_ENABLE control, which allows specific devices to be enabled or disabled at runtime. Add 'iscore' flag to DEVICE_CORE, which indicates whether or not the device is a virtual core device.
Diffstat (limited to 'XInput.h')
-rw-r--r--XInput.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/XInput.h b/XInput.h
index 2f1fffb..3cc7d31 100644
--- a/XInput.h
+++ b/XInput.h
@@ -671,7 +671,20 @@ typedef struct {
XID control;
int length;
int status;
-} XDeviceCoreControl, XDeviceCoreState;
+} XDeviceCoreControl;
+
+typedef struct {
+ XID control;
+ int length;
+ int status;
+ int iscore;
+} XDeviceCoreState;
+
+typedef struct {
+ XID control;
+ int length;
+ int enable;
+} XDeviceEnableControl, XDeviceEnableState;
/*******************************************************************
*