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.
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
scancodecrate, based on libSDL2, itself based on the USB HID standard. This seems a good way to encode scan codes, but unfortunately thescancodecrate seems unmaintained, and I saw thatwinitcurrently uses au32for the scan code.So I'm wondering whether there is interest to:
scancodecrate,VirtualKeyCodestruct into their own crate as part ofrust-windowing.