summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-03 22:54:47 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-03 22:54:47 +0200
commit01228fbc9c785cd04b903a36f4710f04639f11a8 (patch)
tree03c9328a8f3de55769c4188f08990f7a4ea7bf71 /src/managers/input/InputManager.cpp
parentf7c4865bac1cde066db5d6e5d51f3e60c5606f6f (diff)
fix some bugs
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 194592cc..13833d18 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -392,6 +392,9 @@ void CInputManager::applyConfigToKeyboard(SKeyboard* pKeyboard) {
ASSERT(pKeyboard);
+ if (!pKeyboard->keyboard->keyboard)
+ return;
+
const auto REPEATRATE = HASCONFIG ? g_pConfigManager->getDeviceInt(pKeyboard->name, "repeat_rate") : g_pConfigManager->getInt("input:repeat_rate");
const auto REPEATDELAY = HASCONFIG ? g_pConfigManager->getDeviceInt(pKeyboard->name, "repeat_delay") : g_pConfigManager->getInt("input:repeat_delay");