mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(iOS) Fix some warnings in apple_gamecontroller.m
This commit is contained in:
parent
9b69deaa12
commit
fb579c24be
@ -366,7 +366,7 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = ../;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
OTHER_CFLAGS = (
|
||||
"-DHAVE_CAMERA",
|
||||
@ -416,7 +416,7 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
HEADER_SEARCH_PATHS = ../;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
|
||||
OTHER_CFLAGS = (
|
||||
"-DNS_BLOCK_ASSERTIONS=1",
|
||||
"-DNDEBUG",
|
||||
|
@ -35,7 +35,7 @@ static void apple_gamecontroller_poll(GCController* controller)
|
||||
if (!controller || controller.playerIndex == MAX_PLAYERS)
|
||||
return;
|
||||
|
||||
uint32_t slot = controller.playerIndex;
|
||||
uint32_t slot = (uint32_t)controller.playerIndex;
|
||||
g_current_input_data.pad_buttons[slot] = 0;
|
||||
memset(g_current_input_data.pad_axis[slot], 0, sizeof(g_current_input_data.pad_axis[0]));
|
||||
|
||||
@ -118,7 +118,7 @@ void apple_gamecontroller_disconnect(GCController* controller)
|
||||
if (controller.playerIndex == GCControllerPlayerIndexUnset)
|
||||
return;
|
||||
|
||||
apple_joypad_disconnect(controller.playerIndex);
|
||||
apple_joypad_disconnect((uint32_t)(controller.playerIndex));
|
||||
}
|
||||
|
||||
void apple_gamecontroller_init(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user