mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
apple_joypad_hid - cleanup apple_joypad_button somewhat
This commit is contained in:
parent
784643fd8c
commit
d1e26a6911
@ -299,8 +299,9 @@ static bool apple_joypad_button(unsigned port, uint16_t joykey)
|
|||||||
if (GET_HAT_DIR(joykey))
|
if (GET_HAT_DIR(joykey))
|
||||||
return false;
|
return false;
|
||||||
// Check the button
|
// Check the button
|
||||||
return (port < MAX_PLAYERS && joykey < 32) ?
|
if ((port < MAX_PLAYERS) && (joykey < 32))
|
||||||
(apple->buttons[port] & (1 << joykey)) != 0 : false;
|
return ((apple->buttons[port] & (1 << joykey)) != 0);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int16_t apple_joypad_axis(unsigned port, uint32_t joyaxis)
|
static int16_t apple_joypad_axis(unsigned port, uint32_t joyaxis)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user