Cleanup android_joypad_query_pad

This commit is contained in:
twinaphex 2015-11-29 16:35:51 +01:00
parent a9f2959f4f
commit dc7e8bc52b

View File

@ -153,9 +153,7 @@ static void android_joypad_poll(void)
static bool android_joypad_query_pad(unsigned pad)
{
driver_t *driver = driver_get_ptr();
android_input_t *android = driver ? (android_input_t*)driver->input_data : NULL;
return (pad < MAX_USERS && pad < android->pads_connected);
return (pad < MAX_USERS);
}