InputManager: add unregister_indev function

This commit is contained in:
Thomas Farstrike
2026-02-09 16:40:03 +01:00
parent b0412d502a
commit c4beb0b3da
@@ -29,6 +29,18 @@ class InputManager:
if indev and indev not in cls._registered_indevs:
cls._registered_indevs.append(indev)
@classmethod
def unregister_indev(cls, indev):
"""
Unregister an input device.
Parameters:
- indev: LVGL input device object to remove
"""
if indev in cls._registered_indevs:
indev.enable(False)
cls._registered_indevs.remove(indev)
@classmethod
def list_indevs(cls):
"""