summaryrefslogtreecommitdiffstats
path: root/native/src/input/button_state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/input/button_state.rs')
-rw-r--r--native/src/input/button_state.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/native/src/input/button_state.rs b/native/src/input/button_state.rs
index e9dc05d7..988043ba 100644
--- a/native/src/input/button_state.rs
+++ b/native/src/input/button_state.rs
@@ -1,9 +1,4 @@
/// The state of a button.
-///
-/// If you are using [`winit`], consider enabling the `winit` feature to get
-/// conversion implementations for free!
-///
-/// [`winit`]: https://docs.rs/winit/0.20.0-alpha3/winit/
#[derive(Debug, Hash, Ord, PartialOrd, PartialEq, Eq, Clone, Copy)]
pub enum ButtonState {
/// The button is pressed.
@@ -12,13 +7,3 @@ pub enum ButtonState {
/// The button is __not__ pressed.
Released,
}
-
-#[cfg(feature = "winit")]
-impl From<winit::event::ElementState> for ButtonState {
- fn from(element_state: winit::event::ElementState) -> Self {
- match element_state {
- winit::event::ElementState::Pressed => ButtonState::Pressed,
- winit::event::ElementState::Released => ButtonState::Released,
- }
- }
-}