aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-10-11 10:02:13 +0200
committerAnton Khirnov <anton@khirnov.net>2022-10-11 10:02:13 +0200
commite0e75d3901231b24a459db7906c23f1821a141e8 (patch)
treead0770971272b6fbafd7903661bd379f6e1aae64
parent9013b25829f4de5674ce007473517df4bed616be (diff)
uinput_mng: forward LED events
-rwxr-xr-xuinput_mng3
1 files changed, 3 insertions, 0 deletions
diff --git a/uinput_mng b/uinput_mng
index 0074d87..5d68908 100755
--- a/uinput_mng
+++ b/uinput_mng
@@ -112,6 +112,9 @@ class UInputDevice:
# force feedback command, forward to devices
self._logger.debug('Forwarding an FF event')
self._tgt_devices.write_ff_event(ev)
+ elif ev.type == ecodes.EV_LED:
+ for d in self._tgt_devices.values():
+ d.set_led(ev.code, ev.value)
elif ev.type == ecodes.EV_UINPUT:
if ev.code == ecodes.UI_FF_UPLOAD:
upload = self._dev.begin_upload(ev.value)