#[repr(u32)]pub enum Key {
Show 102 variants
None = 0,
MouseLeft = 1,
MouseRight = 2,
MouseCenter = 4,
MouseForward = 5,
MouseBack = 6,
Backspace = 8,
Tab = 9,
Return = 13,
Shift = 16,
Ctrl = 17,
Alt = 18,
CapsLock = 20,
Esc = 27,
Space = 32,
End = 35,
Home = 36,
Left = 37,
Right = 39,
Up = 38,
Down = 40,
PageUp = 33,
PageDown = 34,
PrintScreen = 42,
KeyInsert = 45,
Del = 46,
Key0 = 48,
Key1 = 49,
Key2 = 50,
Key3 = 51,
Key4 = 52,
Key5 = 53,
Key6 = 54,
Key7 = 55,
Key8 = 56,
Key9 = 57,
A = 65,
B = 66,
C = 67,
D = 68,
E = 69,
F = 70,
G = 71,
H = 72,
I = 73,
J = 74,
K = 75,
L = 76,
M = 77,
N = 78,
O = 79,
P = 80,
Q = 81,
R = 82,
S = 83,
T = 84,
U = 85,
V = 86,
W = 87,
X = 88,
Y = 89,
Z = 90,
Numpad0 = 96,
Numpad1 = 97,
Numpad2 = 98,
Numpad3 = 99,
Numpad4 = 100,
Numpad5 = 101,
Numpad6 = 102,
Numpad7 = 103,
Numpad8 = 104,
Numpad9 = 105,
F1 = 112,
F2 = 113,
F3 = 114,
F4 = 115,
F5 = 116,
F6 = 117,
F7 = 118,
F8 = 119,
F9 = 120,
F10 = 121,
F11 = 122,
F12 = 123,
Comma = 188,
Period = 190,
SlashFwd = 191,
SlashBack = 220,
Semicolon = 186,
Apostrophe = 222,
BracketOpen = 219,
BracketClose = 221,
Minus = 189,
Equals = 187,
Backtick = 192,
LCmd = 91,
RCmd = 92,
Multiply = 106,
Add = 107,
Subtract = 109,
Decimal = 110,
Divide = 111,
}
Expand description
A collection of system key codes, representing keyboard characters and mouse buttons. Based on VK codes. https://stereokit.net/Pages/StereoKit/Key.html
see also Input::key
Input::key_inject_press
Input::key_inject_release
Input::hand_sim_pose_add
Variants§
None = 0
MouseLeft = 1
MouseRight = 2
MouseCenter = 4
MouseForward = 5
MouseBack = 6
Backspace = 8
Tab = 9
Return = 13
Shift = 16
Ctrl = 17
Alt = 18
CapsLock = 20
Esc = 27
Space = 32
End = 35
Home = 36
Left = 37
Right = 39
Up = 38
Down = 40
PageUp = 33
PageDown = 34
PrintScreen = 42
KeyInsert = 45
Del = 46
Key0 = 48
Key1 = 49
Key2 = 50
Key3 = 51
Key4 = 52
Key5 = 53
Key6 = 54
Key7 = 55
Key8 = 56
Key9 = 57
A = 65
B = 66
C = 67
D = 68
E = 69
F = 70
G = 71
H = 72
I = 73
J = 74
K = 75
L = 76
M = 77
N = 78
O = 79
P = 80
Q = 81
R = 82
S = 83
T = 84
U = 85
V = 86
W = 87
X = 88
Y = 89
Z = 90
Numpad0 = 96
Numpad1 = 97
Numpad2 = 98
Numpad3 = 99
Numpad4 = 100
Numpad5 = 101
Numpad6 = 102
Numpad7 = 103
Numpad8 = 104
Numpad9 = 105
F1 = 112
F2 = 113
F3 = 114
F4 = 115
F5 = 116
F6 = 117
F7 = 118
F8 = 119
F9 = 120
F10 = 121
F11 = 122
F12 = 123
Comma = 188
Period = 190
SlashFwd = 191
SlashBack = 220
Semicolon = 186
Apostrophe = 222
BracketOpen = 219
BracketClose = 221
Minus = 189
Equals = 187
Backtick = 192
LCmd = 91
RCmd = 92
Multiply = 106
Add = 107
Subtract = 109
Decimal = 110
Divide = 111
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.