mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Cleanup android_joypad_query_pad
This commit is contained in:
parent
a9f2959f4f
commit
dc7e8bc52b
@ -153,9 +153,7 @@ static void android_joypad_poll(void)
|
|||||||
|
|
||||||
static bool android_joypad_query_pad(unsigned pad)
|
static bool android_joypad_query_pad(unsigned pad)
|
||||||
{
|
{
|
||||||
driver_t *driver = driver_get_ptr();
|
return (pad < MAX_USERS);
|
||||||
android_input_t *android = driver ? (android_input_t*)driver->input_data : NULL;
|
|
||||||
return (pad < MAX_USERS && pad < android->pads_connected);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user