Enum key_mapping::Keys
source · #[repr(u8)]pub enum Keys {
Show 119 variants
None = 0,
A = 4,
B = 5,
C = 6,
D = 7,
E = 8,
F = 9,
G = 10,
H = 11,
I = 12,
J = 13,
K = 14,
L = 15,
M = 16,
N = 17,
O = 18,
P = 19,
Q = 20,
R = 21,
S = 22,
T = 23,
U = 24,
V = 25,
W = 26,
X = 27,
Y = 28,
Z = 29,
One = 30,
Two = 31,
Three = 32,
Four = 33,
Five = 34,
Six = 35,
Seven = 36,
Eight = 37,
Nine = 38,
Zero = 39,
Enter = 40,
Escape = 41,
Backspace = 42,
Tab = 43,
Spacebar = 44,
Minus = 45,
Equals = 46,
LeftBracket = 47,
RightBracket = 48,
Backslash = 49,
Pound = 50,
Semicolon = 51,
Quote = 52,
BackQuote = 53,
Comma = 54,
Period = 55,
ForwardSlash = 56,
CapsLock = 57,
F1 = 58,
F2 = 59,
F3 = 60,
F4 = 61,
F5 = 62,
F6 = 63,
F7 = 64,
F8 = 65,
F9 = 66,
F10 = 67,
F11 = 68,
F12 = 69,
PrintScreen = 70,
ScrollLock = 71,
PauseBreak = 72,
Insert = 73,
Home = 74,
PageUp = 75,
Delete = 76,
End = 77,
PageDown = 78,
RightArrow = 79,
LeftArrow = 80,
DownArrow = 81,
UpArrow = 82,
NumLock = 83,
KeypadDivide = 84,
KeypadMultiply = 85,
KeypadSubtract = 86,
KeypadAdd = 87,
KeypadEnter = 88,
KeypadOne = 89,
KeypadTwo = 90,
KeypadThree = 91,
KeypadFour = 92,
KeypadFive = 93,
KeypadSix = 94,
KeypadSeven = 95,
KeypadEight = 96,
KeypadNine = 97,
KeypadZero = 98,
KeypadDecimal = 99,
KeypadBackslash = 100,
KeypadEquals = 103,
F13 = 104,
F14 = 105,
F15 = 106,
F16 = 107,
F17 = 108,
F18 = 109,
F19 = 110,
F20 = 111,
F21 = 112,
F22 = 113,
F23 = 114,
F24 = 115,
LeftControl = 224,
LeftShift = 225,
LeftAlt = 226,
LeftMeta = 227,
RightControl = 228,
RightShift = 229,
RightAlt = 230,
RightMeta = 231,
}Expand description
Keyboard keys as enum values, with usage-id representation.
Variants§
None = 0
A = 4
B = 5
C = 6
D = 7
E = 8
F = 9
G = 10
H = 11
I = 12
J = 13
K = 14
L = 15
M = 16
N = 17
O = 18
P = 19
Q = 20
R = 21
S = 22
T = 23
U = 24
V = 25
W = 26
X = 27
Y = 28
Z = 29
One = 30
Two = 31
Three = 32
Four = 33
Five = 34
Six = 35
Seven = 36
Eight = 37
Nine = 38
Zero = 39
Enter = 40
Escape = 41
Backspace = 42
Tab = 43
Spacebar = 44
Minus = 45
Equals = 46
LeftBracket = 47
RightBracket = 48
Backslash = 49
Pound = 50
Semicolon = 51
Quote = 52
BackQuote = 53
Comma = 54
Period = 55
ForwardSlash = 56
CapsLock = 57
F1 = 58
F2 = 59
F3 = 60
F4 = 61
F5 = 62
F6 = 63
F7 = 64
F8 = 65
F9 = 66
F10 = 67
F11 = 68
F12 = 69
PrintScreen = 70
ScrollLock = 71
PauseBreak = 72
Insert = 73
Home = 74
PageUp = 75
Delete = 76
End = 77
PageDown = 78
RightArrow = 79
LeftArrow = 80
DownArrow = 81
UpArrow = 82
NumLock = 83
KeypadDivide = 84
KeypadMultiply = 85
KeypadSubtract = 86
KeypadAdd = 87
KeypadEnter = 88
KeypadOne = 89
KeypadTwo = 90
KeypadThree = 91
KeypadFour = 92
KeypadFive = 93
KeypadSix = 94
KeypadSeven = 95
KeypadEight = 96
KeypadNine = 97
KeypadZero = 98
KeypadDecimal = 99
KeypadBackslash = 100
KeypadEquals = 103
F13 = 104
F14 = 105
F15 = 106
F16 = 107
F17 = 108
F18 = 109
F19 = 110
F20 = 111
F21 = 112
F22 = 113
F23 = 114
F24 = 115
LeftControl = 224
LeftShift = 225
LeftAlt = 226
LeftMeta = 227
RightControl = 228
RightShift = 229
RightAlt = 230
RightMeta = 231
Trait Implementations§
source§impl Ord for Keys
impl Ord for Keys
source§impl PartialEq for Keys
impl PartialEq for Keys
source§impl PartialOrd for Keys
impl PartialOrd for Keys
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Keys
impl Eq for Keys
impl StructuralPartialEq for Keys
Auto Trait Implementations§
impl Freeze for Keys
impl RefUnwindSafe for Keys
impl Send for Keys
impl Sync for Keys
impl Unpin for Keys
impl UnwindSafe for Keys
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