Browse Source

[ganepad] Do not repeat spell if modefier is pressed

pull/4419/head
Anders Jenbo 4 years ago
parent
commit
b55ab39fe3
  1. 2
      Source/miniwin/misc_msg.cpp

2
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;
}

Loading…
Cancel
Save