From b55ab39fe3998df839c49d42b4f9320d8c6d308b Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 13 Apr 2022 04:42:02 +0200 Subject: [PATCH] [ganepad] Do not repeat spell if modefier is pressed --- Source/miniwin/misc_msg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/miniwin/misc_msg.cpp b/Source/miniwin/misc_msg.cpp index 0e0de355f..7db9000e1 100644 --- a/Source/miniwin/misc_msg.cpp +++ b/Source/miniwin/misc_msg.cpp @@ -467,7 +467,7 @@ bool FetchMessage_Real(tagMSG *lpMsg) } if (IsAnyOf(ctrlEvent.button, ControllerButtonPrimary, ControllerButtonSecondary, ControllerButtonTertiary) && IsAnyOf(ControllerButtonHeld, ctrlEvent.button, ControllerButton_NONE)) { - ControllerButtonHeld = ctrlEvent.up ? ControllerButton_NONE : ctrlEvent.button; + ControllerButtonHeld = (ctrlEvent.up || IsControllerButtonPressed(ControllerButton_BUTTON_BACK)) ? ControllerButton_NONE : ctrlEvent.button; LastMouseButtonAction = MouseActionType::None; }