comparison src/joystick/win32/SDL_dxjoystick.c @ 2652:380d926cc5a7 gsoc2008_force_feedback

Fix for mingw compilation of haptic subsystem by Alam.
author Edgar Simo <bobbens@gmail.com>
date Mon, 25 Aug 2008 17:30:39 +0000
parents 9bad8efcb75e
children
comparison
equal deleted inserted replaced
2651:ff33a65123ce 2652:380d926cc5a7
83 /* Convert a DirectInput return code to a text message */ 83 /* Convert a DirectInput return code to a text message */
84 static void 84 static void
85 SetDIerror(const char *function, HRESULT code) 85 SetDIerror(const char *function, HRESULT code)
86 { 86 {
87 SDL_SetError("%s() [%s]: %s", function, 87 SDL_SetError("%s() [%s]: %s", function,
88 DXGetErrorString(code), DXGetErrorDescription(code)); 88 DXGetErrorString8A(code), DXGetErrorDescription8A(code));
89 } 89 }
90 90
91 91
92 /* Function to scan the system for joysticks. 92 /* Function to scan the system for joysticks.
93 * This function should set SDL_numjoysticks to the number of available 93 * This function should set SDL_numjoysticks to the number of available