mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
Add additional derived traits to Key enum (#65)
* Add partial ord and partial eq to keys enum * Derive eq on key * Derive ord
This commit is contained in:
parent
fb403498f0
commit
0b5e39c396
|
@ -1,5 +1,5 @@
|
|||
/// Key is used by the get key functions to check if some keys on the keyboard has been pressed
|
||||
#[derive(Debug, PartialEq, Clone, Copy)]
|
||||
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
|
||||
pub enum Key {
|
||||
Key0 = 0,
|
||||
Key1 = 1,
|
||||
|
|
Loading…
Reference in a new issue