Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Almost got this compiling on Cygwin32, just needs DirectInput 7

  • Loading branch information
slouken committed Sep 15, 2008
1 parent 53f9b0e commit ed075b8316eaded0b4cba9d47046228cb81170ee
Showing with 7 additions and 2 deletions.
  1. +1 −1 src/haptic/win32/SDL_syshaptic.c
  2. +6 −1 src/joystick/win32/SDL_dxjoystick.c
@@ -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;
@@ -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);

0 comments on commit ed075b8

Please sign in to comment.