Enum device_query::keymap::Keycode
source · pub enum Keycode {
Show 100 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,
Command,
LOption,
ROption,
LMeta,
RMeta,
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
Command
LOption
ROption
LMeta
RMeta
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§
source§impl PartialEq for Keycode
impl PartialEq for Keycode
impl Copy for Keycode
impl Eq 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§
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