From f55331cf65a936b569f98f4b620b13da2df091c6 Mon Sep 17 00:00:00 2001 From: Benau Date: Mon, 6 Apr 2020 10:24:10 +0800 Subject: [PATCH] Fix duplicated event for joining in splitscreen screen --- src/input/input_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/input_manager.cpp b/src/input/input_manager.cpp index 7919e95e2..362c06085 100644 --- a/src/input/input_manager.cpp +++ b/src/input/input_manager.cpp @@ -771,7 +771,7 @@ void InputManager::dispatchInput(Input::InputType type, int deviceID, else if (player == NULL) { // New player is joining - if (action == PA_FIRE || action == PA_MENU_SELECT) + if (value != 0 && (action == PA_FIRE || action == PA_MENU_SELECT)) { InputDevice *device = NULL; if (type == Input::IT_KEYBOARD)