From 7a2b86ddf2b9c463ff14066ed7745ff3ae4f51b0 Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Sat, 21 Sep 2024 19:20:09 +0200 Subject: [PATCH] uinput.py: Fix wrongly named enums --- scc/uinput.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scc/uinput.py b/scc/uinput.py index a29e2f09..13c87a3e 100644 --- a/scc/uinput.py +++ b/scc/uinput.py @@ -57,19 +57,19 @@ class KeysOnly(IntEnum): """Keys enum contains all keys and button from linux/uinput.h (KEY_* BTN_*).""" #locals().update({i: CHEAD[i] for i in CHEAD if i.startswith("KEY_")}) -KeysOnly = IntEnum("Keys", {i: CHEAD[i] for i in CHEAD.keys() if (i.startswith("KEY_"))}) +KeysOnly = IntEnum("KeysOnly", {i: CHEAD[i] for i in CHEAD.keys() if (i.startswith("KEY_"))}) class Axes(IntEnum): """Axes enum contains all axes from linux/uinput.h (ABS_*).""" #locals().update({i: CHEAD[i] for i in CHEAD if i.startswith("ABS_")}) -Axes = IntEnum("Keys", {i: CHEAD[i] for i in CHEAD.keys() if (i.startswith("ABS_"))}) +Axes = IntEnum("Axes", {i: CHEAD[i] for i in CHEAD.keys() if (i.startswith("ABS_"))}) class Rels(IntEnum): """Rels enum contains all rels from linux/uinput.h (REL_*).""" #locals().update({i: CHEAD[i] for i in CHEAD if i.startswith("REL_")}) -Rels = IntEnum("Keys", {i: CHEAD[i] for i in CHEAD.keys() if (i.startswith("REL_"))}) +Rels = IntEnum("Rels", {i: CHEAD[i] for i in CHEAD.keys() if (i.startswith("REL_"))}) # Scan codes for each keys (taken from a logitech keyboard) Scans = {