Enum device_query::keymap::Keycode
source · [−]pub enum Keycode {
Show 96 variants
Key0,
Key1,
Key2,
Key3,
Key4,
Key5,
Key6,
Key7,
Key8,
Key9,
A,
B,
C,
D,
E,
F,
G,
H,
I,
J,
K,
L,
M,
N,
O,
P,
Q,
R,
S,
T,
U,
V,
W,
X,
Y,
Z,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
Escape,
Space,
LControl,
RControl,
LShift,
RShift,
LAlt,
RAlt,
Meta,
Enter,
Up,
Down,
Left,
Right,
Backspace,
CapsLock,
Tab,
Home,
End,
PageUp,
PageDown,
Insert,
Delete,
Numpad0,
Numpad1,
Numpad2,
Numpad3,
Numpad4,
Numpad5,
Numpad6,
Numpad7,
Numpad8,
Numpad9,
NumpadSubtract,
NumpadAdd,
NumpadDivide,
NumpadMultiply,
Grave,
Minus,
Equal,
LeftBracket,
RightBracket,
BackSlash,
Semicolon,
Apostrophe,
Comma,
Dot,
Slash,
}
Expand description
A list of supported keys that we can query from the OS. Outside of mod.
Variants
Key0
Key1
Key2
Key3
Key4
Key5
Key6
Key7
Key8
Key9
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
Escape
Space
LControl
RControl
LShift
RShift
LAlt
RAlt
Meta
Enter
Up
Down
Left
Right
Backspace
CapsLock
Tab
Home
End
PageUp
PageDown
Insert
Delete
Numpad0
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
Numpad8
Numpad9
NumpadSubtract
NumpadAdd
NumpadDivide
NumpadMultiply
Grave
Minus
Equal
LeftBracket
RightBracket
BackSlash
Semicolon
Apostrophe
Comma
Dot
Slash
Trait Implementations
impl Copy for Keycode
impl StructuralPartialEq for Keycode
Auto Trait Implementations
impl RefUnwindSafe for Keycode
impl Send for Keycode
impl Sync for Keycode
impl Unpin for Keycode
impl UnwindSafe for Keycode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more