milkey-mouse / planets

A space game.
GNU General Public License v3.0
3 stars 1 forks source link

write a crate to convert scan codes to virtual keys #42

Open todo[bot] opened 5 years ago

todo[bot] commented 5 years ago

à la Windows's MapVirtualKeyA(). or we could cut out the middleman and convert to keys' unicode value. Windows has ToUnicode/ToUnicodeEx, macOS has UCKeyTranslate, X11 and Wayland are probably totally different as well. perhaps this belongs in winit? if not, it could make its own tiny crate. (for macOS, see also https://github.com/JensAyton/KeyNaming)


https://github.com/milkey-mouse/planets/blob/2ab3115e7fd2b60f46ccec73fa22471d519d6f55/src/window/input.rs#L1-L6


This issue was generated by todo based on a // TODO: comment in 2ab3115e7fd2b60f46ccec73fa22471d519d6f55.