# HG changeset patch # User Sam Lantinga # Date 1254026970 0 # Node ID a9c6e65c141633f690e564fb47d3deadabd75bd5 # Parent ee58103d5354913a119e79ec7cd382b7d327d880 Added missing DirectX data diff -r ee58103d5354 -r a9c6e65c1416 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 */