|
@@ -1380,14 +1380,14 @@ static SDL_JoystickGUID HIDAPI_JoystickGetDeviceGUID(int device_index)
|
|
|
|
|
|
static SDL_JoystickID HIDAPI_JoystickGetDeviceInstanceID(int device_index)
|
|
|
{
|
|
|
- SDL_JoystickID joystickID = -1;
|
|
|
+ SDL_JoystickID joystickID = 0;
|
|
|
HIDAPI_GetDeviceByIndex(device_index, &joystickID);
|
|
|
return joystickID;
|
|
|
}
|
|
|
|
|
|
static int HIDAPI_JoystickOpen(SDL_Joystick *joystick, int device_index)
|
|
|
{
|
|
|
- SDL_JoystickID joystickID = -1;
|
|
|
+ SDL_JoystickID joystickID = 0;
|
|
|
SDL_HIDAPI_Device *device = HIDAPI_GetDeviceByIndex(device_index, &joystickID);
|
|
|
struct joystick_hwdata *hwdata;
|
|
|
|