Msvc 64bit/directx interface

Hello,

when compiling sdl 1.2 (svn rev 4122 or 1.2.13 at wish) using
64bit msvc, the video init of the directx interface does not
work because the IDirectInputDevice2_SetDataFormat() function
is called with invalid arguments.

The problems are the hardcoded values for e.g. c_dfDIKeyboard,
which are not correct for 64bit as the DIDATAFORMAT structure
contains pointers. Information about the entries of the
DIDATAFORMAT structure can be found at msdn, along with an
example.

Another point regarding 64bit msvc is the sdl project file
(VisualC.zip/SDL/SDL.vcproj) which has an entry
AdditionalOptions="/MACHINE:I386"
that is invalid for 64bit, as well as unneeded for regular
32bit builds, so it can be removed. Note that this is not part
of the patch below.

Thanks

The attached patch is against svn rev 4122, generalizing the
structures c_dfDIKeyboard, c_dfDIMouse and c_dfDIJoystick to
work with 64bit msvc.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: sdl_64bit_dx.diff
Type: application/octet-stream
Size: 1225 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20081115/e97c8c31/attachment.obj