Enum KeyAction
pub enum KeyAction {
Release,
Press,
Repeat,
}Expand description
What a key did in an input_key event (GLFW’s action: release 0, press 1, repeat 2).
Variants§
Release
The key was let go.
Press
The key went down.
Repeat
The key is held and the operating system repeats it.
Trait Implementations§
impl Copy for KeyAction
impl Eq for KeyAction
impl StructuralPartialEq for KeyAction
Auto Trait Implementations§
impl Freeze for KeyAction
impl RefUnwindSafe for KeyAction
impl Send for KeyAction
impl Sync for KeyAction
impl Unpin for KeyAction
impl UnsafeUnpin for KeyAction
impl UnwindSafe for KeyAction
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