summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 619bfab7..014de40a 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -1265,7 +1265,14 @@ void CInputManager::updateKeyboardsLeds(SP<IKeyboard> pKeyboard) {
if (!pKeyboard)
return;
- pKeyboard->updateLEDs();
+ std::optional<uint32_t> leds = pKeyboard->getLEDs();
+
+ if (!leds.has_value())
+ return;
+
+ for (auto& k : m_vKeyboards) {
+ k->updateLEDs(leds.value());
+ }
}
void CInputManager::onKeyboardKey(std::any event, SP<IKeyboard> pKeyboard) {