Fixed Visual Studio warning 4245
This commit is contained in:
parent
f341c06552
commit
85ee1498a5
6 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue