From 96c21eeb0d6ce7317099da5c13a4fd853c786f2c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 28 Feb 2016 17:45:14 +0100 Subject: [PATCH] Reimplement gamepad action OK button --- menu/drivers/zarch.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/menu/drivers/zarch.c b/menu/drivers/zarch.c index ab0414fd95..2e2b448a7f 100644 --- a/menu/drivers/zarch.c +++ b/menu/drivers/zarch.c @@ -232,17 +232,8 @@ static int16_t zarch_zui_input_state(zui_t *zui, enum zarch_zui_input_state stat if ( menu_input_mouse_state(MENU_MOUSE_LEFT_BUTTON) || menu_input_pointer_state(MENU_POINTER_PRESSED)) return 1; - if (input_driver_state(libretro_input_binds, - 0, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_B)) - { - if (!old_b_pressed) - { - old_b_pressed = true; - return 1; - } - } - else - old_b_pressed = false; + if (zui->action == MENU_ACTION_OK) + return 1; break; } @@ -811,7 +802,7 @@ static int zarch_zui_render_lay_root_load(zui_t *zui, zui_tabbed_t *tabbed) if (zarch_zui_list_item(zui, tabbed, 0, tabbed->tabline_size + 73 + j * ZUI_ITEM_SIZE_PX, - label, i, NULL, gamepad_index == i)) + label, i, NULL, gamepad_index == (i-skip))) { if (path_is_directory(path)) {