From c96312ad040b527757c196a4cbff792b563b49cd Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 29 Nov 2015 19:01:10 +0100 Subject: [PATCH] input_keys_pressed - cleanup --- input/input_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/input_driver.c b/input/input_driver.c index 3a462e2a27..abe46f4b49 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -595,13 +595,13 @@ retro_input_t input_keys_pressed(void) unsigned i; const struct retro_keybind *binds[MAX_USERS]; retro_input_t ret = 0; - driver_t *driver = driver_get_ptr(); settings_t *settings = config_get_ptr(); + const input_driver_t *input = input_get_ptr(); for (i = 0; i < MAX_USERS; i++) binds[i] = settings->input.binds[i]; - if (!driver->input || !main_input_data) + if (!input || !main_input_data) return 0; turbo_btns.count++;