2 releases

0.1.2 Jan 29, 2021
0.1.1 Jan 29, 2021
0.1.0 Jan 29, 2021

#1509 in Hardware support

Download history 20/week @ 2024-01-22 13/week @ 2024-01-29 8/week @ 2024-02-05 6/week @ 2024-02-12 18/week @ 2024-02-19 32/week @ 2024-02-26 17/week @ 2024-03-04 19/week @ 2024-03-11 22/week @ 2024-03-18 22/week @ 2024-03-25 92/week @ 2024-04-01 7/week @ 2024-04-08 19/week @ 2024-04-15 23/week @ 2024-04-22 18/week @ 2024-04-29 15/week @ 2024-05-06

77 downloads per month
Used in 4 crates (via dmitri)

MIT/Apache

14KB
284 lines

gluten-keyboard

Build Status crates.io Docs

This simple crate contains the Keys enum, which provides a set of every key that could be reasonably found on a keyboard in 2021, as well as a function to convert the key press to a character (where applicable). This was largely created as I couldn't find any crates providing a similar enum without also being a part of a GUI monocrate.

License

MIT/Apache2 License


lib.rs:

Provides an enum containing keys found on most keyboards. Useful for implementing a system where the user needs to handle keyboard input. Made because I couldn't find a useful standard that didn't pretend everything used char.

No runtime deps