Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Almost got this compiling on Cygwin32, just needs DirectInput 7
  • Loading branch information
slouken committed Sep 15, 2008
1 parent 53f9b0e commit ed075b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/haptic/win32/SDL_syshaptic.c
Expand Up @@ -154,7 +154,7 @@ SDL_SYS_HapticInit(void)
}

ret = CoCreateInstance(&CLSID_DirectInput, NULL, CLSCTX_INPROC_SERVER,
&IID_IDirectInput, &dinput);
&IID_IDirectInput, (LPVOID)&dinput);
if (FAILED(ret)) {
DI_SetError("CoCreateInstance", ret);
return -1;
Expand Down
7 changes: 6 additions & 1 deletion src/joystick/win32/SDL_dxjoystick.c
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ed075b8

Please sign in to comment.