Skip to main content

keysym_to_key

Function keysym_to_key 

pub fn keysym_to_key(keysym: u32) -> (Key, KeyLocation)
Expand description

The logical key and location xkb’s keysym names, as a keyboard event on X11 or Wayland reports them, so a host that reads the keyboard itself (a KMS host through libinput and xkbcommon) names keys as winit does. A keysym that names no key winit knows is Key::Unidentified; the caller takes the key’s text instead.