Added missing DirectX data SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 27 Sep 2009 04:49:30 +0000
branchSDL-1.2
changeset 4248 a9c6e65c1416
parent 4247 ee58103d5354
child 4249 429c8dd3175d
Added missing DirectX data
src/video/windx5/SDL_dx5video.c
--- a/src/video/windx5/SDL_dx5video.c	Sun Sep 27 01:31:30 2009 +0000
+++ b/src/video/windx5/SDL_dx5video.c	Sun Sep 27 04:49:30 2009 +0000
@@ -341,14 +341,30 @@
 	{ &GUID_XAxis, 0, 0x00FFFF03, 0x00000000 },
 	{ &GUID_YAxis, 4, 0x00FFFF03, 0x00000000 },
 	{ &GUID_ZAxis, 8, 0x80FFFF03, 0x00000000 },
-	{ NULL, 12, 0x00FFFF0C, 0x00000000 },
-	{ NULL, 13, 0x00FFFF0C, 0x00000000 },
-	{ NULL, 14, 0x80FFFF0C, 0x00000000 },
-	{ NULL, 15, 0x80FFFF0C, 0x00000000 },
+	{ NULL,       12, 0x00FFFF0C, 0x00000000 },
+	{ NULL,       13, 0x00FFFF0C, 0x00000000 },
+	{ NULL,       14, 0x80FFFF0C, 0x00000000 },
+	{ NULL,       15, 0x80FFFF0C, 0x00000000 },
 };
 
 const DIDATAFORMAT c_dfDIMouse = { sizeof(DIDATAFORMAT), sizeof(DIOBJECTDATAFORMAT), 0x00000002, 16, 7, PTR_fmt };
 
+static DIOBJECTDATAFORMAT PTR2_fmt[] = {
+	{ &GUID_XAxis, 0, 0x00FFFF03, 0x00000000 },
+	{ &GUID_YAxis, 4, 0x00FFFF03, 0x00000000 },
+	{ &GUID_ZAxis, 8, 0x80FFFF03, 0x00000000 },
+	{ NULL,       12, 0x00FFFF0C, 0x00000000 },
+	{ NULL,       13, 0x00FFFF0C, 0x00000000 },
+	{ NULL,       14, 0x80FFFF0C, 0x00000000 },
+	{ NULL,       15, 0x80FFFF0C, 0x00000000 },
+	{ NULL,       16, 0x80FFFF0C, 0x00000000 },
+	{ NULL,       17, 0x80FFFF0C, 0x00000000 },
+	{ NULL,       18, 0x80FFFF0C, 0x00000000 },
+	{ NULL,       19, 0x80FFFF0C, 0x00000000 }
+};
+
+const DIDATAFORMAT c_dfDIMouse2 = { sizeof(DIDATAFORMAT), sizeof(DIOBJECTDATAFORMAT), 0x00000002, 20, 11, PTR2_fmt };
+
 
 /* Joystick */