mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 08:56:25 +00:00
Fixed Visual Studio warning 4245
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user