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:
Holden 2018-12-29 02:37:56 -05:00 committed by Daniel Collin
parent fb403498f0
commit 0b5e39c396

View file

@ -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,