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:
twinaphex 2015-07-12 08:39:34 +02:00
parent 33b7388a9e
commit c2c9ace028
2 changed files with 4 additions and 5 deletions

View File

@ -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);
}

View File

@ -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)