Enum async_std_hidg::Key
source · [−]#[repr(u8)]
pub enum Key {
Show 156 variants
None,
Overflow,
PostFail,
Undefined,
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,
Num1,
Num2,
Num3,
Num4,
Num5,
Num6,
Num7,
Num8,
Num9,
Num0,
Enter,
Esc,
BackSpace,
Tab,
Space,
Minus,
Equal,
LeftBrace,
RightBrace,
BackSlash,
HashTilde,
Semicolon,
Apostrophe,
Grave,
Comma,
Dot,
Slash,
CapsLock,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
SysRq,
ScrollLock,
Pause,
Insert,
Home,
PageUp,
Delete,
End,
PageDown,
Right,
Left,
Down,
Up,
NumLock,
KeyPadSlash,
KeyPadAsterisk,
KeyPadMinus,
KeyPadPlus,
KyePadEnter,
KeyPad1,
KeyPad2,
KeyPad3,
KeyPad4,
KeyPad5,
KeyPad6,
KeyPad7,
KeyPad8,
KeyPad9,
KeyPad0,
KeyPadDot,
NonUsBackSlash,
Compose,
Power,
KeyPadEqual,
F13,
F14,
F15,
F16,
F17,
F18,
F19,
F20,
F21,
F22,
F23,
F24,
Open,
Help,
Props,
Front,
Stop,
Again,
Undo,
Cut,
Copy,
Paste,
Find,
Mute,
VolumeUp,
VolumeDown,
LockingCapsLock,
LockingNumLock,
LockingScrollLock,
KeyPadComma,
KeyPadEqualSign,
Ro,
KatakanaHiragana,
Yen,
Henkan,
Munenkan,
KeyPadJpComma,
Hangeul,
Hanja,
Katakana,
Hiragana,
ZankakuHankaku,
KeyPadLeftParen,
KeyPadRightParen,
LeftCtrl,
LeftShift,
LeftAlt,
LeftMeta,
RightCtrl,
RightShift,
RightAlt,
RightMeta,
}
Expand description
Key code
Variants
None
No key
Overflow
Keyboard Error Roll Over - used for all slots if too many keys are pressed (“Phantom key”)
PostFail
Keyboard POST Fail
Undefined
Keyboard Error Undefined
A
Keyboard a and A
B
Keyboard b and B
C
Keyboard c and C
D
Keyboard d and D
E
Keyboard e and E
F
Keyboard f and F
G
Keyboard g and G
H
Keyboard h and H
I
Keyboard i and I
J
Keyboard j and J
K
Keyboard k and K
L
Keyboard l and L
M
Keyboard m and M
N
Keyboard n and N
O
Keyboard o and O
P
Keyboard p and P
Q
Keyboard q and Q
R
Keyboard r and R
S
Keyboard s and S
T
Keyboard t and T
U
Keyboard u and U
V
Keyboard v and V
W
Keyboard w and W
X
Keyboard x and X
Y
Keyboard y and Y
Z
Keyboard z and Z
Num1
Keyboard 1 and !
Num2
Keyboard 2 and @
Num3
Keyboard 3 and #
Num4
Keyboard 4 and $
Num5
Keyboard 5 and %
Num6
Keyboard 6 and ^
Num7
Keyboard 7 and &
Num8
Keyboard 8 and *
Num9
Keyboard 9 and (
Num0
Keyboard 0 and )
Enter
Keyboard Return (ENTER)
Esc
Keyboard ESCAPE
BackSpace
Keyboard DELETE (Backspace)
Tab
Keyboard Tab
Space
Keyboard Spacebar
Minus
Keyboard - and _
Equal
Keyboard = and +
LeftBrace
Keyboard [ and {
RightBrace
Keyboard ] and }
BackSlash
Keyboard \ and |
HashTilde
Keyboard Non-US # and ~
Semicolon
Keyboard ; and :
Apostrophe
Keyboard ’ and “
Grave
Keyboard ` and ~
Comma
Keyboard , and <
Dot
Keyboard . and >
Slash
Keyboard / and ?
CapsLock
Keyboard Caps Lock
F1
Keyboard F1
F2
Keyboard F2
F3
Keyboard F3
F4
Keyboard F4
F5
Keyboard F5
F6
Keyboard F6
F7
Keyboard F7
F8
Keyboard F8
F9
Keyboard F9
F10
Keyboard F10
F11
Keyboard F11
F12
Keyboard F12
SysRq
Keyboard Print Screen
ScrollLock
Keyboard Scroll Lock
Pause
Keyboard Pause
Insert
Keyboard Insert
Home
Keyboard Home
PageUp
Keyboard Page Up
Delete
Keyboard Delete Forward
End
Keyboard End
PageDown
Keyboard Page Down
Right
Keyboard Right Arrow
Left
Keyboard Left Arrow
Down
Keyboard Down Arrow
Up
Keyboard Up Arrow
NumLock
Keyboard Num Lock and Clear
KeyPadSlash
Keypad /
KeyPadAsterisk
Keypad *
KeyPadMinus
Keypad -
KeyPadPlus
Keypad +
KyePadEnter
Keypad ENTER
KeyPad1
Keypad 1 and End
KeyPad2
Keypad 2 and Down Arrow
KeyPad3
Keypad 3 and PageDn
KeyPad4
Keypad 4 and Left Arrow
KeyPad5
Keypad 5
KeyPad6
Keypad 6 and Right Arrow
KeyPad7
Keypad 7 and Home
KeyPad8
Keypad 8 and Up Arrow
KeyPad9
Keypad 9 and Page Up
KeyPad0
Keypad 0 and Insert
KeyPadDot
Keypad . and Delete
NonUsBackSlash
Keyboard Non-US \ and |
Compose
Keyboard Application
Power
Keyboard Power
KeyPadEqual
Keypad =
F13
Keyboard F13
F14
Keyboard F14
F15
Keyboard F15
F16
Keyboard F16
F17
Keyboard F17
F18
Keyboard F18
F19
Keyboard F19
F20
Keyboard F20
F21
Keyboard F21
F22
Keyboard F22
F23
Keyboard F23
F24
Keyboard F24
Open
Keyboard Execute
Help
Keyboard Help
Props
Keyboard Menu
Front
Keyboard Select
Stop
Keyboard Stop
Again
Keyboard Again
Undo
Keyboard Undo
Cut
Keyboard Cut
Copy
Keyboard Copy
Paste
Keyboard Paste
Find
Keyboard Find
Mute
Keyboard Mute
VolumeUp
Keyboard Volume Up
VolumeDown
Keyboard Volume Down
LockingCapsLock
Keyboard Locking Caps Lock
LockingNumLock
Keyboard Locking Num Lock
LockingScrollLock
Keyboard Locking Scroll Lock
KeyPadComma
Keypad Comma
KeyPadEqualSign
Keypad Equal Sign
Ro
Keyboard International1
KatakanaHiragana
Keyboard International2
Yen
Keyboard International3
Henkan
Keyboard International4
Munenkan
Keyboard International5
KeyPadJpComma
Keyboard International6
Hangeul
Keyboard LANG1
Hanja
Keyboard LANG2
Katakana
Keyboard LANG3
Hiragana
Keyboard LANG4
ZankakuHankaku
Keyboard LANG5
KeyPadLeftParen
Keypad (
KeyPadRightParen
Keypad )
LeftCtrl
Keyboard Left Control
LeftShift
Keyboard Left Shift
LeftAlt
Keyboard Left Alt
LeftMeta
Keyboard Left GUI
RightCtrl
Keyboard Right Control
RightShift
Keyboard Right Shift
RightAlt
Keyboard Right Alt
RightMeta
Keyboard Right GUI
Implementations
sourceimpl Key
impl Key
sourcepub const VARIANTS: &'static [Key] = &[Key::None, Key::Overflow, Key::PostFail, Key::Undefined, Key::A, Key::B,
Key::C, Key::D, Key::E, Key::F, Key::G, Key::H, Key::I, Key::J,
Key::K, Key::L, Key::M, Key::N, Key::O, Key::P, Key::Q, Key::R,
Key::S, Key::T, Key::U, Key::V, Key::W, Key::X, Key::Y, Key::Z,
Key::Num1, Key::Num2, Key::Num3, Key::Num4, Key::Num5, Key::Num6,
Key::Num7, Key::Num8, Key::Num9, Key::Num0, Key::Enter, Key::Esc,
Key::BackSpace, Key::Tab, Key::Space, Key::Minus, Key::Equal,
Key::LeftBrace, Key::RightBrace, Key::BackSlash, Key::HashTilde,
Key::Semicolon, Key::Apostrophe, Key::Grave, Key::Comma, Key::Dot,
Key::Slash, Key::CapsLock, Key::F1, Key::F2, Key::F3, Key::F4,
Key::F5, Key::F6, Key::F7, Key::F8, Key::F9, Key::F10, Key::F11,
Key::F12, Key::SysRq, Key::ScrollLock, Key::Pause, Key::Insert,
Key::Home, Key::PageUp, Key::Delete, Key::End, Key::PageDown,
Key::Right, Key::Left, Key::Down, Key::Up, Key::NumLock,
Key::KeyPadSlash, Key::KeyPadAsterisk, Key::KeyPadMinus,
Key::KeyPadPlus, Key::KyePadEnter, Key::KeyPad1, Key::KeyPad2,
Key::KeyPad3, Key::KeyPad4, Key::KeyPad5, Key::KeyPad6,
Key::KeyPad7, Key::KeyPad8, Key::KeyPad9, Key::KeyPad0,
Key::KeyPadDot, Key::NonUsBackSlash, Key::Compose, Key::Power,
Key::KeyPadEqual, Key::F13, Key::F14, Key::F15, Key::F16,
Key::F17, Key::F18, Key::F19, Key::F20, Key::F21, Key::F22,
Key::F23, Key::F24, Key::Open, Key::Help, Key::Props, Key::Front,
Key::Stop, Key::Again, Key::Undo, Key::Cut, Key::Copy, Key::Paste,
Key::Find, Key::Mute, Key::VolumeUp, Key::VolumeDown,
Key::LockingCapsLock, Key::LockingNumLock, Key::LockingScrollLock,
Key::KeyPadComma, Key::KeyPadEqualSign, Key::Ro,
Key::KatakanaHiragana, Key::Yen, Key::Henkan, Key::Munenkan,
Key::KeyPadJpComma, Key::Hangeul, Key::Hanja, Key::Katakana,
Key::Hiragana, Key::ZankakuHankaku, Key::KeyPadLeftParen,
Key::KeyPadRightParen, Key::LeftCtrl, Key::LeftShift,
Key::LeftAlt, Key::LeftMeta, Key::RightCtrl, Key::RightShift,
Key::RightAlt, Key::RightMeta]
pub const VARIANTS: &'static [Key] = &[Key::None, Key::Overflow, Key::PostFail, Key::Undefined, Key::A, Key::B, Key::C, Key::D, Key::E, Key::F, Key::G, Key::H, Key::I, Key::J, Key::K, Key::L, Key::M, Key::N, Key::O, Key::P, Key::Q, Key::R, Key::S, Key::T, Key::U, Key::V, Key::W, Key::X, Key::Y, Key::Z, Key::Num1, Key::Num2, Key::Num3, Key::Num4, Key::Num5, Key::Num6, Key::Num7, Key::Num8, Key::Num9, Key::Num0, Key::Enter, Key::Esc, Key::BackSpace, Key::Tab, Key::Space, Key::Minus, Key::Equal, Key::LeftBrace, Key::RightBrace, Key::BackSlash, Key::HashTilde, Key::Semicolon, Key::Apostrophe, Key::Grave, Key::Comma, Key::Dot, Key::Slash, Key::CapsLock, Key::F1, Key::F2, Key::F3, Key::F4, Key::F5, Key::F6, Key::F7, Key::F8, Key::F9, Key::F10, Key::F11, Key::F12, Key::SysRq, Key::ScrollLock, Key::Pause, Key::Insert, Key::Home, Key::PageUp, Key::Delete, Key::End, Key::PageDown, Key::Right, Key::Left, Key::Down, Key::Up, Key::NumLock, Key::KeyPadSlash, Key::KeyPadAsterisk, Key::KeyPadMinus, Key::KeyPadPlus, Key::KyePadEnter, Key::KeyPad1, Key::KeyPad2, Key::KeyPad3, Key::KeyPad4, Key::KeyPad5, Key::KeyPad6, Key::KeyPad7, Key::KeyPad8, Key::KeyPad9, Key::KeyPad0, Key::KeyPadDot, Key::NonUsBackSlash, Key::Compose, Key::Power, Key::KeyPadEqual, Key::F13, Key::F14, Key::F15, Key::F16, Key::F17, Key::F18, Key::F19, Key::F20, Key::F21, Key::F22, Key::F23, Key::F24, Key::Open, Key::Help, Key::Props, Key::Front, Key::Stop, Key::Again, Key::Undo, Key::Cut, Key::Copy, Key::Paste, Key::Find, Key::Mute, Key::VolumeUp, Key::VolumeDown, Key::LockingCapsLock, Key::LockingNumLock, Key::LockingScrollLock, Key::KeyPadComma, Key::KeyPadEqualSign, Key::Ro, Key::KatakanaHiragana, Key::Yen, Key::Henkan, Key::Munenkan, Key::KeyPadJpComma, Key::Hangeul, Key::Hanja, Key::Katakana, Key::Hiragana, Key::ZankakuHankaku, Key::KeyPadLeftParen, Key::KeyPadRightParen, Key::LeftCtrl, Key::LeftShift, Key::LeftAlt, Key::LeftMeta, Key::RightCtrl, Key::RightShift, Key::RightAlt, Key::RightMeta]
List of all enum variants