From 861eafef26962fefdfed7d93f4c71b3f3c17dbd4 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 6 Jul 2013 20:20:25 -0700 Subject: [PATCH] Make pause/speed virtual buttons work again. Fixes #2669. --- UI/EmuScreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index 87276ba44b..52dc2824a2 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -291,6 +291,10 @@ void EmuScreen::update(InputState &input) { rightstick_x += fakeInputState.pad_rstick_x; rightstick_y += fakeInputState.pad_rstick_y; + // Also send the special buttons to input, since that's where they're handled. + input.pad_buttons_down |= fakeInputState.pad_buttons_down & (PAD_BUTTON_MENU | PAD_BUTTON_BACK | PAD_BUTTON_RIGHT_THUMB | PAD_BUTTON_LEFT_THUMB); + input.pad_buttons_up |= fakeInputState.pad_buttons_up & (PAD_BUTTON_MENU | PAD_BUTTON_BACK | PAD_BUTTON_RIGHT_THUMB | PAD_BUTTON_LEFT_THUMB); + #ifdef _WIN32 } #endif