mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-26 02:36:32 +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 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
/// Key is used by the get key functions to check if some keys on the keyboard has been pressed
|
/// 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 {
|
pub enum Key {
|
||||||
Key0 = 0,
|
Key0 = 0,
|
||||||
Key1 = 1,
|
Key1 = 1,
|
||||||
|
|
Loading…
Add table
Reference in a new issue