Added missing DirectX data SDL-1.2
authorSam Lantinga
Sun, 27 Sep 2009 04:49:30 +0000
branchSDL-1.2
changeset 4248a9c6e65c1416
parent 4247 ee58103d5354
child 4249 429c8dd3175d
Added missing DirectX data
src/video/windx5/SDL_dx5video.c
     1.1 --- a/src/video/windx5/SDL_dx5video.c	Sun Sep 27 01:31:30 2009 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5video.c	Sun Sep 27 04:49:30 2009 +0000
     1.3 @@ -341,14 +341,30 @@
     1.4  	{ &GUID_XAxis, 0, 0x00FFFF03, 0x00000000 },
     1.5  	{ &GUID_YAxis, 4, 0x00FFFF03, 0x00000000 },
     1.6  	{ &GUID_ZAxis, 8, 0x80FFFF03, 0x00000000 },
     1.7 -	{ NULL, 12, 0x00FFFF0C, 0x00000000 },
     1.8 -	{ NULL, 13, 0x00FFFF0C, 0x00000000 },
     1.9 -	{ NULL, 14, 0x80FFFF0C, 0x00000000 },
    1.10 -	{ NULL, 15, 0x80FFFF0C, 0x00000000 },
    1.11 +	{ NULL,       12, 0x00FFFF0C, 0x00000000 },
    1.12 +	{ NULL,       13, 0x00FFFF0C, 0x00000000 },
    1.13 +	{ NULL,       14, 0x80FFFF0C, 0x00000000 },
    1.14 +	{ NULL,       15, 0x80FFFF0C, 0x00000000 },
    1.15  };
    1.16  
    1.17  const DIDATAFORMAT c_dfDIMouse = { sizeof(DIDATAFORMAT), sizeof(DIOBJECTDATAFORMAT), 0x00000002, 16, 7, PTR_fmt };
    1.18  
    1.19 +static DIOBJECTDATAFORMAT PTR2_fmt[] = {
    1.20 +	{ &GUID_XAxis, 0, 0x00FFFF03, 0x00000000 },
    1.21 +	{ &GUID_YAxis, 4, 0x00FFFF03, 0x00000000 },
    1.22 +	{ &GUID_ZAxis, 8, 0x80FFFF03, 0x00000000 },
    1.23 +	{ NULL,       12, 0x00FFFF0C, 0x00000000 },
    1.24 +	{ NULL,       13, 0x00FFFF0C, 0x00000000 },
    1.25 +	{ NULL,       14, 0x80FFFF0C, 0x00000000 },
    1.26 +	{ NULL,       15, 0x80FFFF0C, 0x00000000 },
    1.27 +	{ NULL,       16, 0x80FFFF0C, 0x00000000 },
    1.28 +	{ NULL,       17, 0x80FFFF0C, 0x00000000 },
    1.29 +	{ NULL,       18, 0x80FFFF0C, 0x00000000 },
    1.30 +	{ NULL,       19, 0x80FFFF0C, 0x00000000 }
    1.31 +};
    1.32 +
    1.33 +const DIDATAFORMAT c_dfDIMouse2 = { sizeof(DIDATAFORMAT), sizeof(DIOBJECTDATAFORMAT), 0x00000002, 20, 11, PTR2_fmt };
    1.34 +
    1.35  
    1.36  /* Joystick */
    1.37