fix(snippets): adjust evdev keycode offset for input handling

This commit is contained in:
ByteAtATime 2025-06-24 20:35:57 -07:00
parent 61c804235c
commit 77f7f8c113
No known key found for this signature in database

View file

@ -345,6 +345,7 @@ impl InputManager for EvdevInputManager {
continue;
}
// evdev keycodes are offset by 8 from X11 keycodes
let keycode = ev.code() + 8;
let direction = match ev.value() {
0 => xkb::KeyDirection::Up,