git repos / blockattack-game

commit 8283ed72

Poul Sander · 2019-05-08 16:15
8283ed72f6dba28ce1891ea2e03b60c7f7788472 patch · browse files
parent a5ca5da2c417559dc69876d2696a2021d6122258

Fixed a bug were the mouse click would be counted double if a menu was opened with gamepad or keyboard and closed with the mouse

Changed files

M source/code/MenuSystem.cpp before
diff --git a/source/code/MenuSystem.cpp b/source/code/MenuSystem.cpp index b895675..f183ab7 100644 --- a/source/code/MenuSystem.cpp +++ b/source/code/MenuSystem.cpp
@@ -356,6 +356,7 @@ void Menu::ProcessInput(const SDL_Event& event, bool& processed) {
}
if (isConfirmEvent(event)) {
+ bMouseUp = false;
if (marked < (int)buttons.size()) {
buttons.at(marked)->doAction();
if (buttons.at(marked)->isPopOnRun()) {