Skip to content

feat: add BTN_GRIPL/GRIPR/GRIPL2/GRIPR2 (Steam Deck back paddles)#178

Merged
jeff-hiner merged 1 commit into
emberian:mainfrom
phischdev:feat/add-btn-grip-steamdeck
May 28, 2026
Merged

feat: add BTN_GRIPL/GRIPR/GRIPL2/GRIPR2 (Steam Deck back paddles)#178
jeff-hiner merged 1 commit into
emberian:mainfrom
phischdev:feat/add-btn-grip-steamdeck

Conversation

@phischdev
Copy link
Copy Markdown

Summary

Adds four button codes for the Steam Deck's back paddle buttons that are defined in the Linux kernel's input-event-codes.h but missing from this crate:

BTN_GRIPL  = 0x224  // back paddle L5 (top left)
BTN_GRIPR  = 0x225  // back paddle R5 (top right)
BTN_GRIPL2 = 0x226  // back paddle L4 (bottom left)
BTN_GRIPR2 = 0x227  // back paddle R4 (bottom right)

These are emitted by the hid-steam kernel driver for the Steam Deck hardware. Without them, any application using this crate cannot handle back paddle input by name — Key::from_str("BTN_GRIPL") silently fails.

Verification

The names and codes match the official kernel header exactly:

// include/uapi/linux/input-event-codes.h
#define BTN_GRIPL   0x224
#define BTN_GRIPR   0x225
#define BTN_GRIPL2  0x226
#define BTN_GRIPR2  0x227

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).
@jeff-hiner
Copy link
Copy Markdown
Collaborator

Thank you!

@jeff-hiner jeff-hiner merged commit f90916d into emberian:main May 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants