Try to fix duplicated event produced by button

This commit is contained in:
Benau 2020-04-21 18:33:56 +08:00
parent 8c412ee840
commit 96ec4d9c3d

View File

@ -328,7 +328,7 @@ void EventHandler::processGUIAction(const PlayerAction action,
const bool pressedDown = value > Input::MAX_VALUE*2/3;
if (!pressedDown && type == Input::IT_STICKMOTION) return;
if (!pressedDown) return;
switch (action)
{