Skip to content
  • Neil Roberts's avatar
    Add an input device function to convert keycodes to evdev codes · 13e3f9e5
    Neil Roberts authored
    
    
    This adds a virtual function to ClutterInputDevice to translate a
    keycode from the hardware_keycode member of ClutterKeyEvent to an
    evdev keycode. The function can fail so that input backends that don't
    have a sensible way to translate to evdev keycodes can return FALSE.
    There are implementations for evdev, wayland and X. The X
    implementation assumes that the X server is using an evdev driver in
    which case the hardware keycodes are the evdev codes plus 8.
    
    Reviewed-by: default avatarEmmanuele Bassi <ebassi@linux.intel.com>
    13e3f9e5