summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/input/inputmanager.cpp6
1 files changed, 6 insertions, 0 deletions
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")