mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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))
|
||||
return false;
|
||||
// Check the button
|
||||
return (port < MAX_PLAYERS && joykey < 32) ?
|
||||
(apple->buttons[port] & (1 << joykey)) != 0 : false;
|
||||
if ((port < MAX_PLAYERS) && (joykey < 32))
|
||||
return ((apple->buttons[port] & (1 << joykey)) != 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
static int16_t apple_joypad_axis(unsigned port, uint32_t joyaxis)
|
||||
|
Loading…
x
Reference in New Issue
Block a user