HactarCE / key-names

Platform-aware keyboard key name handling for Rust applications
Apache License 2.0
5 stars 5 forks source link

Fix mapping between x11 Keycodes and evdev scancodes #6

Closed picuber closed 1 year ago

picuber commented 1 year ago

fixes #5

It seems that according to the xkbcommon documentation (specifically: https://docs.rs/xkbcommon/latest/xkbcommon/xkb/type.Keycode.html), there is a fixed offset of 8 between X11-compatible keymaps and Linux evdev scancodes.

HactarCE commented 1 year ago

Thank you so so much!