Almost got this compiling on Cygwin32, just needs DirectInput 7

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403217
This commit is contained in:
Sam Lantinga 2008-09-15 08:41:03 +00:00
parent 809f6ba3b4
commit 7792866ddb
2 changed files with 7 additions and 2 deletions

View file

@ -41,6 +41,11 @@
#include "SDL_dxjoystick_c.h"
#ifndef DIDFT_OPTIONAL
#define DIDFT_OPTIONAL 0x80000000
#endif
#define INPUT_QSIZE 32 /* Buffer up to 32 input messages */
#define MAX_JOYSTICKS 8
#define AXIS_MIN -32768 /* minimum value for axis coordinate */
@ -285,7 +290,7 @@ SDL_SYS_JoystickInit(void)
}
result = CoCreateInstance(&CLSID_DirectInput, NULL, CLSCTX_INPROC_SERVER,
&IID_IDirectInput, &dinput);
&IID_IDirectInput, (LPVOID)&dinput);
if (FAILED(result)) {
SetDIerror("CoCreateInstance", result);