From f91c4552052bc31a9ddfd3a28468b9c2275f76b2 Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 27 May 2026 16:18:35 +0200 Subject: [PATCH] feat: add BTN_GRIPL/GRIPR/GRIPL2/GRIPR2 (Steam Deck back paddles) These four button codes (0x224-0x227) are defined in the Linux kernel's input-event-codes.h but were missing from this crate's scancodes.rs. They are emitted by the hid-steam kernel driver for the Steam Deck's back paddle buttons (L4/L5/R4/R5). --- src/scancodes.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scancodes.rs b/src/scancodes.rs index e030ee0..2a4e820 100644 --- a/src/scancodes.rs +++ b/src/scancodes.rs @@ -497,6 +497,10 @@ evdev_enum!( BTN_DPAD_DOWN = 0x221, BTN_DPAD_LEFT = 0x222, BTN_DPAD_RIGHT = 0x223, + BTN_GRIPL = 0x224, + BTN_GRIPR = 0x225, + BTN_GRIPL2 = 0x226, + BTN_GRIPR2 = 0x227, KEY_ALS_TOGGLE = 0x230, /* Ambient light sensor */ KEY_BUTTONCONFIG = 0x240, /* AL Button Configuration */ KEY_TASKMANAGER = 0x241, /* AL Task/Project Manager */