mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-27 21:48:29 +00:00
Fixed Visual Studio warning 4244
This commit is contained in:
@@ -530,7 +530,7 @@ static int VIRTUAL_JoystickSetSensorsEnabled(SDL_Joystick *joystick, SDL_bool en
|
||||
static void VIRTUAL_JoystickUpdate(SDL_Joystick *joystick)
|
||||
{
|
||||
joystick_hwdata *hwdata;
|
||||
int i;
|
||||
Uint8 i;
|
||||
Uint64 timestamp = SDL_GetTicksNS();
|
||||
|
||||
SDL_AssertJoysticksLocked();
|
||||
@@ -582,8 +582,8 @@ static void VIRTUAL_JoystickQuit(void)
|
||||
static SDL_bool VIRTUAL_JoystickGetGamepadMapping(int device_index, SDL_GamepadMapping *out)
|
||||
{
|
||||
joystick_hwdata *hwdata = VIRTUAL_HWDataForIndex(device_index);
|
||||
int current_button = 0;
|
||||
int current_axis = 0;
|
||||
Uint8 current_button = 0;
|
||||
Uint8 current_axis = 0;
|
||||
|
||||
if (hwdata->desc.type != SDL_JOYSTICK_TYPE_GAMEPAD) {
|
||||
return SDL_FALSE;
|
||||
|
Reference in New Issue
Block a user