Enum LogicalKey
#[repr(i32)]pub enum LogicalKey {
Show 132 variants
Unknown = 0,
Number0 = 1,
Number1 = 2,
Number2 = 3,
Number3 = 4,
Number4 = 5,
Number5 = 6,
Number6 = 7,
Number7 = 8,
Number8 = 9,
Number9 = 10,
Comma = 11,
Period = 12,
Semicolon = 13,
Pipe = 14,
Quote = 15,
DecimalSeparator = 16,
ThousandsSeparator = 17,
A = 18,
B = 19,
C = 20,
D = 21,
E = 22,
F = 23,
G = 24,
H = 25,
I = 26,
J = 27,
K = 28,
L = 29,
M = 30,
N = 31,
O = 32,
P = 33,
Q = 34,
R = 35,
S = 36,
T = 37,
U = 38,
V = 39,
W = 40,
X = 41,
Y = 42,
Z = 43,
Space = 44,
Backspace = 45,
Enter = 46,
Tab = 47,
BackTab = 48,
Escape = 49,
CapsLock = 50,
NumLock = 51,
PrintScreen = 52,
ScrollLock = 53,
Break = 54,
Insert = 55,
Delete = 56,
Home = 57,
End = 58,
PageUp = 59,
PageDown = 60,
Plus = 61,
Minus = 62,
Multiply = 63,
Divide = 64,
ArrowUp = 65,
ArrowDown = 66,
ArrowLeft = 67,
ArrowRight = 68,
Numpad0 = 69,
Numpad1 = 70,
Numpad2 = 71,
Numpad3 = 72,
Numpad4 = 73,
Numpad5 = 74,
Numpad6 = 75,
Numpad7 = 76,
Numpad8 = 77,
Numpad9 = 78,
NumpadDivide = 79,
NumpadMultiply = 80,
NumpadPlus = 81,
NumpadMinus = 82,
NumpadComma = 83,
NumpadEnter = 84,
F1 = 85,
F2 = 86,
F3 = 87,
F4 = 88,
F5 = 89,
F6 = 90,
F7 = 91,
F8 = 92,
F9 = 93,
F10 = 94,
F11 = 95,
F12 = 96,
VolumeUp = 97,
VolumeDown = 98,
Softkey1 = 99,
Softkey2 = 100,
Softkey3 = 101,
Softkey4 = 102,
Shift = 103,
Control = 104,
Alt = 105,
Super = 106,
Menu = 107,
LeftAlt = 108,
LeftControl = 109,
LeftShift = 110,
LeftSuper = 111,
RightAlt = 112,
RightControl = 113,
RightShift = 114,
RightSuper = 115,
ButtonA = 116,
ButtonB = 117,
ButtonC = 118,
ButtonX = 119,
ButtonY = 120,
ButtonZ = 121,
ButtonL1 = 122,
ButtonL2 = 123,
ButtonR1 = 124,
ButtonR2 = 125,
ButtonSelect = 126,
ButtonStart = 127,
ButtonThumbL = 128,
ButtonThumbR = 129,
ButtonMode = 130,
Max = 131,
}Expand description
Platform independent key enumeration.
Variants§
Unknown = 0
Unknown keys are used for unmapped keys.
Number0 = 1
Identifies the 0 key.
Number1 = 2
Identifies the 1 key.
Number2 = 3
Identifies the 2 key.
Number3 = 4
Identifies the 3 key.
Number4 = 5
Identifies the 4 key.
Number5 = 6
Identifies the 5 key.
Number6 = 7
Identifies the 6 key.
Number7 = 8
Identifies the 7 key.
Number8 = 9
Identifies the 8 key.
Number9 = 10
Identifies the 9 key.
Comma = 11
Identifies the comma key.
Period = 12
Identifies the period key.
Semicolon = 13
Identifies the semicolon key.
Pipe = 14
Identifies the pipe key.
Quote = 15
Identifies the quote key.
DecimalSeparator = 16
Allows for the key mapping of a locale specific decimal separator.
ThousandsSeparator = 17
Allows for the key mapping of a locale specific thousands separator.
A = 18
Identifies the A key.
B = 19
Identifies the B key.
C = 20
Identifies the C key.
D = 21
Identifies the D key.
E = 22
Identifies the E key.
F = 23
Identifies the F key.
G = 24
Identifies the G key.
H = 25
Identifies the H key.
I = 26
Identifies the I key.
J = 27
Identifies the J key.
K = 28
Identifies the K key.
L = 29
Identifies the L key.
M = 30
Identifies the M key.
N = 31
Identifies the N key.
O = 32
Identifies the O key.
P = 33
Identifies the P key.
Q = 34
Identifies the Q key.
R = 35
Identifies the R key.
S = 36
Identifies the S key.
T = 37
Identifies the T key.
U = 38
Identifies the U key.
V = 39
Identifies the V key.
W = 40
Identifies the W key.
X = 41
Identifies the X key.
Y = 42
Identifies the Y key.
Z = 43
Identifies the Z key.
Space = 44
Identifies the white-space key.
Backspace = 45
Identifies the backspace key.
Enter = 46
Identifies the Enter key.
Tab = 47
Identifies the Tab key.
BackTab = 48
Identifies the Back Tab key.
Escape = 49
Identifies the Escape key.
CapsLock = 50
Identifies the CapsLock key.
NumLock = 51
Identifies the NumLock key.
PrintScreen = 52
Identifies the PrintScreen key.
ScrollLock = 53
Identifies the ScrollLock key.
Break = 54
Identifies the Break key.
Insert = 55
Identifies the Insert key.
Delete = 56
Identifies the Delete key.
Home = 57
Identifies the Home key.
End = 58
Identifies the End key.
PageUp = 59
Identifies the PageUp key.
PageDown = 60
Identifies the PageDown key.
Plus = 61
Identifies the plus key.
Minus = 62
Identifies the minus key.
Multiply = 63
Identifies the asterisk key.
Divide = 64
Identifies the slash key.
ArrowUp = 65
Identifies the arrow up key.
ArrowDown = 66
Identifies the arrow down key.
ArrowLeft = 67
Identifies the arrow left key.
ArrowRight = 68
Identifies the arrow right key.
Numpad0 = 69
Identifies the 0 key from the numeric keypad.
Numpad1 = 70
Identifies the 1 key from the numeric keypad.
Numpad2 = 71
Identifies the 2 key from the numeric keypad.
Numpad3 = 72
Identifies the 3 key from the numeric keypad.
Numpad4 = 73
Identifies the 4 key from the numeric keypad.
Numpad5 = 74
Identifies the 5 key from the numeric keypad.
Numpad6 = 75
Identifies the 6 key from the numeric keypad.
Numpad7 = 76
Identifies the 7 key from the numeric keypad.
Numpad8 = 77
Identifies the 8 key from the numeric keypad.
Numpad9 = 78
Identifies the 9 key from the numeric keypad.
NumpadDivide = 79
Identifies the slash key from the numeric keypad.
NumpadMultiply = 80
Identifies the asterisk key from the numeric keypad.
NumpadPlus = 81
Identifies the plus key from the numeric keypad.
NumpadMinus = 82
Identifies the minus key from the numeric keypad.
NumpadComma = 83
Identifies the comma key from the numeric keypad.
NumpadEnter = 84
Identifies the Enter key from the numeric keypad.
F1 = 85
Identifies the F1 function key.
F2 = 86
Identifies the F2 function key.
F3 = 87
Identifies the F3 function key.
F4 = 88
Identifies the F4 function key.
F5 = 89
Identifies the F5 function key.
F6 = 90
Identifies the F6 function key.
F7 = 91
Identifies the F7 function key.
F8 = 92
Identifies the F8 function key.
F9 = 93
Identifies the F9 function key.
F10 = 94
Identifies the F10 function key.
F11 = 95
Identifies the F11 function key.
F12 = 96
Identifies the F12 function key.
VolumeUp = 97
Identifies the volume up key.
VolumeDown = 98
Identifies the volume down key.
Softkey1 = 99
Identifies the first softkey button, typically present on a phone layout.
Softkey2 = 100
Identifies the second softkey button, typically present on a phone layout.
Softkey3 = 101
Identifies the third softkey button, typically present on a phone layout.
Softkey4 = 102
Identifies the fourth softkey button, typically present on a phone layout.
Shift = 103
Identifies the Shift modifier key.
Control = 104
Identifies the Control modifier key.
Alt = 105
Identifies the Alt modifier key.
Super = 106
Identifies the Super key. You can map Windows key on Windows OS, or Command key on Mac OS to it.
Menu = 107
Identifies the menu key on keyboards where the key is available. The key is also known as “hamburger button” on Android key layouts.
LeftAlt = 108
Identifies the left Alt modifier key.
LeftControl = 109
Identifies the left Control modifier key.
LeftShift = 110
Identifies the left Shift modifier key.
LeftSuper = 111
Identifies the left Super key.
RightAlt = 112
Identifies the right Alt modifier key.
RightControl = 113
Identifies the right Control modifier key.
RightShift = 114
Identifies the right Shift modifier key.
RightSuper = 115
Identifies the right Super key.
ButtonA = 116
Identifies the A button on game controllers.
ButtonB = 117
Identifies the B button on game controllers.
ButtonC = 118
Identifies the C button on game controllers.
ButtonX = 119
Identifies the X button on game controllers.
ButtonY = 120
Identifies the Y button on game controllers.
ButtonZ = 121
Identifies the Z button on game controllers.
ButtonL1 = 122
Identifies the L1 button on game controllers.
ButtonL2 = 123
Identifies the L2 button on game controllers.
ButtonR1 = 124
Identifies the R1 button on game controllers.
ButtonR2 = 125
Identifies the R2 button on game controllers.
ButtonSelect = 126
Identifies the select button on game controllers.
ButtonStart = 127
Identifies the start button on game controllers.
ButtonThumbL = 128
Identifies the ThumbL button on game controllers.
ButtonThumbR = 129
Identifies the ThumbR button on game controllers.
ButtonMode = 130
Identifies the mode button on game controllers.
Max = 131
Specifies the number of logical key values. When extended, the enum value must be kept as last element of the enumeration.
Implementations§
§impl LogicalKey
impl LogicalKey
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> LogicalKey
Trait Implementations§
§impl Clone for LogicalKey
impl Clone for LogicalKey
§fn clone(&self) -> LogicalKey
fn clone(&self) -> LogicalKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for LogicalKey
impl Debug for LogicalKey
§impl Display for LogicalKey
impl Display for LogicalKey
§impl PartialEq for LogicalKey
impl PartialEq for LogicalKey
§impl VariantConstraint for LogicalKey
impl VariantConstraint for LogicalKey
§type DataArg<'a> = LogicalKey
type DataArg<'a> = LogicalKey
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more