summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/lib/directx/dinput_mouse2.c
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/w32api/lib/directx/dinput_mouse2.c')
-rw-r--r--winsup/w32api/lib/directx/dinput_mouse2.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/winsup/w32api/lib/directx/dinput_mouse2.c b/winsup/w32api/lib/directx/dinput_mouse2.c
new file mode 100644
index 000000000..89e18a73d
--- /dev/null
+++ b/winsup/w32api/lib/directx/dinput_mouse2.c
@@ -0,0 +1,30 @@
+/*
+
+ dinput_mouse2.c - DirectInput Mouse DATAFORMAT
+
+ Written by Filip Navara <xnavara@volny.cz>
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+*/
+
+#include "dinput_private.h"
+
+static DIOBJECTDATAFORMAT c_rgodfDIMouse2[] __attribute__ ((section(".text"))) =
+{
+ {&GUID_XAxis,0x0,DIDFT_ABSAXIS|DIDFT_RELAXIS|DIDFT_ANYINSTANCE,0x0},
+ {&GUID_YAxis,0x4,DIDFT_ABSAXIS|DIDFT_RELAXIS|DIDFT_ANYINSTANCE,0x0},
+ {&GUID_ZAxis,0x8,DIDFT_ABSAXIS|DIDFT_RELAXIS|DIDFT_ANYINSTANCE|DIDFT_OPTIONAL,0x0},
+ {NULL,0xc,DIDFT_BUTTON|DIDFT_ANYINSTANCE,0x0},
+ {NULL,0xd,DIDFT_BUTTON|DIDFT_ANYINSTANCE,0x0},
+ {NULL,0xe,DIDFT_BUTTON|DIDFT_ANYINSTANCE|DIDFT_OPTIONAL,0x0},
+ {NULL,0xf,DIDFT_BUTTON|DIDFT_ANYINSTANCE|DIDFT_OPTIONAL,0x0},
+ {NULL,0x10,DIDFT_BUTTON|DIDFT_ANYINSTANCE|DIDFT_OPTIONAL,0x0},
+ {NULL,0x11,DIDFT_BUTTON|DIDFT_ANYINSTANCE|DIDFT_OPTIONAL,0x0},
+ {NULL,0x12,DIDFT_BUTTON|DIDFT_ANYINSTANCE|DIDFT_OPTIONAL,0x0},
+ {NULL,0x13,DIDFT_BUTTON|DIDFT_ANYINSTANCE|DIDFT_OPTIONAL,0x0}
+};
+
+DIDATAFORMAT c_dfDIMouse2 __attribute__ ((section(".rdata"))) = {sizeof(DIDATAFORMAT),sizeof(DIOBJECTDATAFORMAT),DIDF_RELAXIS,20,sizeof(c_rgodfDIMouse2)/sizeof(c_rgodfDIMouse2[0]),c_rgodfDIMouse2};