From 581cb1a069204c701e22ca7aa771fbf77413e531 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 30 Dec 2018 12:16:33 -0800 Subject: [PATCH] UI: Check for step debugging on unthrottle. Fixes #11704. --- UI/GamepadEmu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/GamepadEmu.cpp b/UI/GamepadEmu.cpp index d8c5ad0b7..a70361617 100644 --- a/UI/GamepadEmu.cpp +++ b/UI/GamepadEmu.cpp @@ -617,7 +617,7 @@ UI::ViewGroup *CreatePadLayout(float xres, float yres, bool *pause) { if (unthrottle) { unthrottle->SetAngle(180.0f); unthrottle->OnChange.Add([](UI::EventParams &e) { - if (e.a) { + if (e.a && coreState == CORE_STEPPING) { Core_EnableStepping(false); } return UI::EVENT_DONE;