pub enum KeyEventDeviceType {
Keyboard,
DirectionalPad,
Gamepad,
Joystick,
Hdmi,
}Expand description
The source device for the key event.
Not all platforms supply an accurate type.
Variants§
Keyboard
The device is a keyboard.
DirectionalPad
The device is a directional pad on something like a television remote control or similar.
Gamepad
The device is a gamepad button
Joystick
The device is a joystick button
Hdmi
The device is a device connected to an HDMI bus.
Implementations§
Trait Implementations§
Source§impl Clone for KeyEventDeviceType
impl Clone for KeyEventDeviceType
impl Copy for KeyEventDeviceType
Source§impl Debug for KeyEventDeviceType
impl Debug for KeyEventDeviceType
Source§impl Default for KeyEventDeviceType
impl Default for KeyEventDeviceType
impl Eq for KeyEventDeviceType
Source§impl Hash for KeyEventDeviceType
impl Hash for KeyEventDeviceType
Source§impl PartialEq for KeyEventDeviceType
impl PartialEq for KeyEventDeviceType
impl StructuralPartialEq for KeyEventDeviceType
Auto Trait Implementations§
impl Freeze for KeyEventDeviceType
impl RefUnwindSafe for KeyEventDeviceType
impl Send for KeyEventDeviceType
impl Sync for KeyEventDeviceType
impl Unpin for KeyEventDeviceType
impl UnsafeUnpin for KeyEventDeviceType
impl UnwindSafe for KeyEventDeviceType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.