From 9cf6f58fa6171daff4568963c79a6338e7b54c8c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Sep 2017 18:10:33 +0300 Subject: Fix ignoring "ignore" keys in SDL 2 builds. --- src/input/inputmanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp index cf8c75cd6..d141875b8 100644 --- a/src/input/inputmanager.cpp +++ b/src/input/inputmanager.cpp @@ -694,6 +694,12 @@ bool InputManager::handleEvent(const SDL_Event &restrict event) restrict2 { case SDL_KEYDOWN: case SDL_KEYUP: + if (isActionActive(InputAction::IGNORE_INPUT_1) || + isActionActive(InputAction::IGNORE_INPUT_2)) + { + BLOCK_END("InputManager::handleEvent") + return true; + } if (triggerAction(keyboard.getActionVector(event))) { BLOCK_END("InputManager::handleEvent") -- cgit v1.2.3-60-g2f50