src/joystick/win32/SDL_dxjoystick.c
branchgsoc2008_force_feedback
changeset 2652 380d926cc5a7
parent 2625 9bad8efcb75e
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