mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Input driver's 'input_key_pressed' implementation does not
have to query for overlay state - this is done in an upper-level function already
This commit is contained in:
parent
33b7388a9e
commit
c2c9ace028
@ -863,8 +863,7 @@ static bool android_input_key_pressed(void *data, int key)
|
||||
android_input_t *android = (android_input_t*)data;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
return (input_overlay_key_pressed(key)) ||
|
||||
input_joypad_pressed(android->joypad,
|
||||
return input_joypad_pressed(android->joypad,
|
||||
0, settings->input.binds[0], key);
|
||||
}
|
||||
|
||||
|
@ -791,13 +791,13 @@ static bool qnx_input_key_pressed(void *data, int key)
|
||||
qnx_input_t *qnx = (qnx_input_t*)data;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
return (driver.overlay_state.buttons & (UINT64_C(1) << key) ||
|
||||
input_joypad_pressed(qnx->joypad, 0, settings->input.binds[0], key));
|
||||
return input_joypad_pressed(qnx->joypad, 0, settings->input.binds[0], key);
|
||||
}
|
||||
|
||||
static void qnx_input_free_input(void *data)
|
||||
{
|
||||
free(data);
|
||||
if (data)
|
||||
free(data);
|
||||
}
|
||||
|
||||
static uint64_t qnx_input_get_capabilities(void *data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user