Fix duplicated event for joining in splitscreen screen

This commit is contained in:
Benau 2020-04-06 10:24:10 +08:00
parent 12afc23e4e
commit f55331cf65

View File

@ -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)