diff --git a/crates/bevy_input/src/lib.rs b/crates/bevy_input/src/lib.rs index bdf91df42d..9d5b5ec118 100644 --- a/crates/bevy_input/src/lib.rs +++ b/crates/bevy_input/src/lib.rs @@ -62,7 +62,8 @@ impl Plugin for InputPlugin { } /// The current "press" state of an element -#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] +#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))] pub enum ElementState { Pressed, Released,