mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-02 18:07:40 +00:00
Fixed Visual Studio warning 4244
This commit is contained in:
parent
85ee1498a5
commit
308bcbbe76
29 changed files with 160 additions and 155 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue