Skip to content

Is there interest to use semantic scan code? #1904

@stephanemagnenat

Description

@stephanemagnenat

I am working on a GUI library in Rust, aiming at making it backend-independent. So, my library defines abstract events, to be filled by the backend-specific data. For the scan code, I found the scancode crate, based on libSDL2, itself based on the USB HID standard. This seems a good way to encode scan codes, but unfortunately the scancode crate seems unmaintained, and I saw that winit currently uses a u32 for the scan code.

So I'm wondering whether there is interest to:

  • use semantic scancode matching the USB HID standard, possibly based on the scancode crate,
  • move this and the VirtualKeyCode struct into their own crate as part of rust-windowing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions