pub enum KeyboardCode {
Show 145 variants
None = 255,
Esc = 1,
_1 = 2,
_2 = 3,
_3 = 4,
_4 = 5,
_5 = 6,
_6 = 7,
_7 = 8,
_8 = 9,
_9 = 10,
_0 = 11,
Hyphen = 12,
Equal = 13,
Backspace = 14,
Tab = 15,
Q = 16,
W = 17,
E = 18,
R = 19,
T = 20,
Y = 21,
U = 22,
I = 23,
O = 24,
P = 25,
Bracketleft = 26,
Bracketright = 27,
Enter = 28,
LCtrl = 29,
A = 30,
S = 31,
D = 32,
F = 33,
G = 34,
H = 35,
J = 36,
K = 37,
L = 38,
Semicolon = 39,
Quotesingle = 40,
Tilde = 41,
LShift = 42,
Backslash = 43,
Z = 44,
X = 45,
C = 46,
V = 47,
B = 48,
N = 49,
M = 50,
Comma = 51,
Period = 52,
Slash = 53,
RShift = 54,
NumpadMult = 55,
LAlt = 56,
Space = 57,
CapsLock = 58,
F1 = 59,
F2 = 60,
F3 = 61,
F4 = 62,
F5 = 63,
F6 = 64,
F7 = 65,
F8 = 66,
F9 = 67,
F10 = 68,
NumLock = 69,
ScrollLock = 70,
Numpad7 = 71,
Numpad8 = 72,
Numpad9 = 73,
NumpadMinus = 74,
Numpad4 = 75,
Numpad5 = 76,
Numpad6 = 77,
NumpadPlus = 78,
Numpad1 = 79,
Numpad2 = 80,
Numpad3 = 81,
Numpad0 = 82,
NumpadDec = 83,
DIK_OEM_102 = 86,
F11 = 87,
F12 = 88,
F13 = 100,
F14 = 101,
F15 = 102,
DIK_KANA = 112,
DIK_ABNT_C1 = 115,
DIK_CONVERT = 121,
DIK_NOCONVERT = 123,
Unknown = 125,
DIK_ABNT_C2 = 126,
NumPadEqual = 141,
PrevTrack = 144,
DIK_AT = 145,
Colon = 146,
DIK_UNDERLINE = 147,
DIK_KANJI = 148,
DIK_STOP = 149,
DIK_AX = 150,
DIK_UNLABELED = 151,
NextTrack = 153,
NumPadEnter = 156,
RCtrl = 157,
Mute = 160,
Calc = 161,
PlayPause = 162,
MediaStop = 164,
VolMinus = 174,
VolPlus = 176,
WebHome = 178,
NumpadComma = 179,
NumpadDivide = 181,
PrintSrc = 183,
RAlt = 184,
Pause = 197,
Home = 199,
UpArrow = 200,
PgUp = 201,
Left = 203,
Right = 205,
End = 207,
DownArrow = 208,
PgDn = 209,
Insert = 210,
Delete = 211,
LWindows = 219,
RWindows = 220,
Apps = 221,
Power = 222,
Sleep = 223,
Wake = 227,
WebSearch = 229,
WebFavorites = 230,
WebRefresh = 231,
WebStop = 232,
WebForward = 233,
WebBack = 234,
MyComputer = 235,
Mail = 236,
MediaSelect = 237,
}Expand description
- HumanInterface
- search “DIK_”(Direst input key)
Variants§
None = 255
Esc = 1
_1 = 2
_2 = 3
_3 = 4
_4 = 5
_5 = 6
_6 = 7
_7 = 8
_8 = 9
_9 = 10
_0 = 11
Hyphen = 12
Equal = 13
Backspace = 14
Tab = 15
Q = 16
W = 17
E = 18
R = 19
T = 20
Y = 21
U = 22
I = 23
O = 24
P = 25
Bracketleft = 26
Bracketright = 27
Enter = 28
LCtrl = 29
A = 30
S = 31
D = 32
F = 33
G = 34
H = 35
J = 36
K = 37
L = 38
Semicolon = 39
Quotesingle = 40
Tilde = 41
LShift = 42
Backslash = 43
Z = 44
X = 45
C = 46
V = 47
B = 48
N = 49
M = 50
Comma = 51
Period = 52
Slash = 53
RShift = 54
NumpadMult = 55
LAlt = 56
Space = 57
CapsLock = 58
F1 = 59
F2 = 60
F3 = 61
F4 = 62
F5 = 63
F6 = 64
F7 = 65
F8 = 66
F9 = 67
F10 = 68
NumLock = 69
ScrollLock = 70
Numpad7 = 71
Numpad8 = 72
Numpad9 = 73
NumpadMinus = 74
Numpad4 = 75
Numpad5 = 76
Numpad6 = 77
NumpadPlus = 78
Numpad1 = 79
Numpad2 = 80
Numpad3 = 81
Numpad0 = 82
NumpadDec = 83
DIK_OEM_102 = 86
F11 = 87
F12 = 88
F13 = 100
F14 = 101
F15 = 102
DIK_KANA = 112
DIK_ABNT_C1 = 115
DIK_CONVERT = 121
DIK_NOCONVERT = 123
Unknown = 125
DIK_ABNT_C2 = 126
NumPadEqual = 141
PrevTrack = 144
DIK_AT = 145
Colon = 146
DIK_UNDERLINE = 147
DIK_KANJI = 148
DIK_STOP = 149
DIK_AX = 150
DIK_UNLABELED = 151
NextTrack = 153
NumPadEnter = 156
RCtrl = 157
Mute = 160
Calc = 161
PlayPause = 162
MediaStop = 164
VolMinus = 174
VolPlus = 176
WebHome = 178
NumpadComma = 179
NumpadDivide = 181
PrintSrc = 183
RAlt = 184
Pause = 197
Home = 199
UpArrow = 200
PgUp = 201
Left = 203
Right = 205
End = 207
DownArrow = 208
PgDn = 209
Insert = 210
Delete = 211
LWindows = 219
RWindows = 220
Apps = 221
Power = 222
Sleep = 223
Wake = 227
WebSearch = 229
WebFavorites = 230
WebRefresh = 231
WebStop = 232
WebForward = 233
WebBack = 234
MyComputer = 235
Mail = 236
MediaSelect = 237
Trait Implementations§
Source§impl Clone for KeyboardCode
impl Clone for KeyboardCode
Source§fn clone(&self) -> KeyboardCode
fn clone(&self) -> KeyboardCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyboardCode
impl Debug for KeyboardCode
Source§impl Default for KeyboardCode
impl Default for KeyboardCode
Source§fn default() -> KeyboardCode
fn default() -> KeyboardCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyboardCode
impl<'de> Deserialize<'de> for KeyboardCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for KeyboardCode
impl Display for KeyboardCode
Source§impl FromPrimitive for KeyboardCode
impl FromPrimitive for KeyboardCode
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl FromStr for KeyboardCode
impl FromStr for KeyboardCode
Source§impl Hash for KeyboardCode
impl Hash for KeyboardCode
Source§impl Ord for KeyboardCode
impl Ord for KeyboardCode
Source§fn cmp(&self, other: &KeyboardCode) -> Ordering
fn cmp(&self, other: &KeyboardCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeyboardCode
impl PartialEq for KeyboardCode
Source§impl PartialOrd for KeyboardCode
impl PartialOrd for KeyboardCode
Source§impl Serialize for KeyboardCode
impl Serialize for KeyboardCode
Source§impl ToPrimitive for KeyboardCode
impl ToPrimitive for KeyboardCode
Source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
Converts the value of
self to an i64. If the value cannot be
represented by an i64, then None is returned.Source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
Converts the value of
self to a u64. If the value cannot be
represented by a u64, then None is returned.Source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
Converts the value of
self to an isize. If the value cannot be
represented by an isize, then None is returned.Source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
Converts the value of
self to an i8. If the value cannot be
represented by an i8, then None is returned.Source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
Converts the value of
self to an i16. If the value cannot be
represented by an i16, then None is returned.Source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
Converts the value of
self to an i32. If the value cannot be
represented by an i32, then None is returned.Source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
Converts the value of
self to an i128. If the value cannot be
represented by an i128 (i64 under the default implementation), then
None is returned. Read moreSource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
Converts the value of
self to a usize. If the value cannot be
represented by a usize, then None is returned.Source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
Converts the value of
self to a u8. If the value cannot be
represented by a u8, then None is returned.Source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
Converts the value of
self to a u16. If the value cannot be
represented by a u16, then None is returned.Source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
Converts the value of
self to a u32. If the value cannot be
represented by a u32, then None is returned.Source§fn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
Converts the value of
self to a u128. If the value cannot be
represented by a u128 (u64 under the default implementation), then
None is returned. Read moreSource§impl TryFrom<usize> for KeyboardCode
impl TryFrom<usize> for KeyboardCode
impl Eq for KeyboardCode
impl StructuralPartialEq for KeyboardCode
Auto Trait Implementations§
impl Freeze for KeyboardCode
impl RefUnwindSafe for KeyboardCode
impl Send for KeyboardCode
impl Sync for KeyboardCode
impl Unpin for KeyboardCode
impl UnwindSafe for KeyboardCode
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