Keyboard

Enum Keyboard 

Source
#[repr(u8)]
pub enum Keyboard {
Show 219 variants NoEvent = 0, ErrorRollOver = 1, PostFail = 2, ErrorUndefined = 3, 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, _1 = 30, _2 = 31, _3 = 32, _4 = 33, _5 = 34, _6 = 35, _7 = 36, _8 = 37, _9 = 38, _0 = 39, Enter = 40, Esc = 41, Backspace = 42, Tab = 43, Space = 44, Minus = 45, Equal = 46, LeftBracket = 47, RightBracket = 48, Backslash = 49, Number = 50, Semicolon = 51, Quote = 52, Backtick = 53, Comma = 54, Period = 55, Slash = 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, Pause = 72, Insert = 73, Home = 74, PageUp = 75, Delete = 76, End = 77, PageDown = 78, Right = 79, Left = 80, Down = 81, Up = 82, NumLock = 83, KeypadSlash = 84, KeypadAsterisk = 85, KeypadMinus = 86, KeypadPlus = 87, KeypadEnter = 88, Keypad1 = 89, Keypad2 = 90, Keypad3 = 91, Keypad4 = 92, Keypad5 = 93, Keypad6 = 94, Keypad7 = 95, Keypad8 = 96, Keypad9 = 97, Keypad0 = 98, KeypadPeriod = 99, ISOSlash = 100, App = 101, KeyboardStatus = 102, KeypadEqual = 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, Exec = 116, Help = 117, Menu = 118, Select = 119, Stop = 120, Again = 121, Undo = 122, Cut = 123, Copy = 124, Paste = 125, Find = 126, Mute = 127, VolumeUp = 128, VolumeDown = 129, LockingCapsLock = 130, LockingNumLock = 131, LockingScrollLock = 132, KeypadComma = 133, KeypadEqualAS400 = 134, International1 = 135, International2 = 136, International3 = 137, International4 = 138, International5 = 139, International6 = 140, International7 = 141, International8 = 142, International9 = 143, LANG1 = 144, LANG2 = 145, LANG3 = 146, LANG4 = 147, LANG5 = 148, LANG6 = 149, LANG7 = 150, LANG8 = 151, LANG9 = 152, AlternateErase = 153, SysReq = 154, Cancel = 155, Clear = 156, Prior = 157, Return = 158, Separator = 159, Out = 160, Oper = 161, ClearAgain = 162, CrSelProps = 163, ExSel = 164, Keypad00 = 176, Keypad000 = 177, ThousandSeparator = 178, DecimalSeparator = 179, CurrencyUnit = 180, CurrencySubUnit = 181, KeypadLeftParenthesis = 182, KeypadRightParenthesis = 183, KeypadLeftBrace = 184, KeypadRightBrace = 185, KeypadTab = 186, KeypadBackspace = 187, KeypadA = 188, KeypadB = 189, KeypadC = 190, KeypadD = 191, KeypadE = 192, KeypadF = 193, KeypadXOR = 194, KeypadChevron = 195, KeypadPercent = 196, KeypadLessThan = 197, KeypadGreaterThan = 198, KeypadBITAND = 199, KeypadAND = 200, KeypadBITOR = 201, KeypadOR = 202, KeypadColon = 203, KeypadNumber = 204, KeypadSpace = 205, KeypadAt = 206, KeypadExclamation = 207, KeypadMemoryStore = 208, KeypadMemoryRecall = 209, KeypadMemoryClear = 210, KeypadMemoryAdd = 211, KeypadMemorySubtract = 212, KeypadMemoryMultiply = 213, KeypadMemoryDivide = 214, KeypadPlusMinus = 215, KeypadClear = 216, KeypadClearEntry = 217, KeypadBinary = 218, KeypadOctal = 219, KeypadDecimal = 220, KeypadHexidecimal = 221, LeftControl = 224, LeftShift = 225, LeftAlt = 226, LeftGUI = 227, RightControl = 228, RightShift = 229, RightAlt = 230, RightGUI = 231,
}
Expand description

HID Keyboard Codes List of Keycodes - USB HID 1.12v2 pg 53 0xA5 to 0xAF are reserved 0xDE to 0xDF are reserved 0xE8 to 0xFF are reserved

Variants§

§

NoEvent = 0

§

ErrorRollOver = 1

§

PostFail = 2

§

ErrorUndefined = 3

§

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

§

_1 = 30

§

_2 = 31

§

_3 = 32

§

_4 = 33

§

_5 = 34

§

_6 = 35

§

_7 = 36

§

_8 = 37

§

_9 = 38

§

_0 = 39

§

Enter = 40

§

Esc = 41

§

Backspace = 42

§

Tab = 43

§

Space = 44

§

Minus = 45

§

Equal = 46

§

LeftBracket = 47

§

RightBracket = 48

§

Backslash = 49

§

Number = 50

§

Semicolon = 51

§

Quote = 52

§

Backtick = 53

§

Comma = 54

§

Period = 55

§

Slash = 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

§

Pause = 72

§

Insert = 73

§

Home = 74

§

PageUp = 75

§

Delete = 76

§

End = 77

§

PageDown = 78

§

Right = 79

§

Left = 80

§

Down = 81

§

Up = 82

§

NumLock = 83

§

KeypadSlash = 84

§

KeypadAsterisk = 85

§

KeypadMinus = 86

§

KeypadPlus = 87

§

KeypadEnter = 88

§

Keypad1 = 89

§

Keypad2 = 90

§

Keypad3 = 91

§

Keypad4 = 92

§

Keypad5 = 93

§

Keypad6 = 94

§

Keypad7 = 95

§

Keypad8 = 96

§

Keypad9 = 97

§

Keypad0 = 98

§

KeypadPeriod = 99

§

ISOSlash = 100

§

App = 101

§

KeyboardStatus = 102

§

KeypadEqual = 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

§

Exec = 116

§

Help = 117

§

Menu = 118

§

Select = 119

§

Stop = 120

§

Again = 121

§

Undo = 122

§

Cut = 123

§

Copy = 124

§

Paste = 125

§

Find = 126

§

Mute = 127

§

VolumeUp = 128

§

VolumeDown = 129

§

LockingCapsLock = 130

§

LockingNumLock = 131

§

LockingScrollLock = 132

§

KeypadComma = 133

§

KeypadEqualAS400 = 134

§

International1 = 135

§

International2 = 136

§

International3 = 137

§

International4 = 138

§

International5 = 139

§

International6 = 140

§

International7 = 141

§

International8 = 142

§

International9 = 143

§

LANG1 = 144

§

LANG2 = 145

§

LANG3 = 146

§

LANG4 = 147

§

LANG5 = 148

§

LANG6 = 149

§

LANG7 = 150

§

LANG8 = 151

§

LANG9 = 152

§

AlternateErase = 153

§

SysReq = 154

§

Cancel = 155

§

Clear = 156

§

Prior = 157

§

Return = 158

§

Separator = 159

§

Out = 160

§

Oper = 161

§

ClearAgain = 162

§

CrSelProps = 163

§

ExSel = 164

§

Keypad00 = 176

§

Keypad000 = 177

§

ThousandSeparator = 178

§

DecimalSeparator = 179

§

CurrencyUnit = 180

§

CurrencySubUnit = 181

§

KeypadLeftParenthesis = 182

§

KeypadRightParenthesis = 183

§

KeypadLeftBrace = 184

§

KeypadRightBrace = 185

§

KeypadTab = 186

§

KeypadBackspace = 187

§

KeypadA = 188

§

KeypadB = 189

§

KeypadC = 190

§

KeypadD = 191

§

KeypadE = 192

§

KeypadF = 193

§

KeypadXOR = 194

§

KeypadChevron = 195

§

KeypadPercent = 196

§

KeypadLessThan = 197

§

KeypadGreaterThan = 198

§

KeypadBITAND = 199

§

KeypadAND = 200

§

KeypadBITOR = 201

§

KeypadOR = 202

§

KeypadColon = 203

§

KeypadNumber = 204

§

KeypadSpace = 205

§

KeypadAt = 206

§

KeypadExclamation = 207

§

KeypadMemoryStore = 208

§

KeypadMemoryRecall = 209

§

KeypadMemoryClear = 210

§

KeypadMemoryAdd = 211

§

KeypadMemorySubtract = 212

§

KeypadMemoryMultiply = 213

§

KeypadMemoryDivide = 214

§

KeypadPlusMinus = 215

§

KeypadClear = 216

§

KeypadClearEntry = 217

§

KeypadBinary = 218

§

KeypadOctal = 219

§

KeypadDecimal = 220

§

KeypadHexidecimal = 221

§

LeftControl = 224

§

LeftShift = 225

§

LeftAlt = 226

§

LeftGUI = 227

§

RightControl = 228

§

RightShift = 229

§

RightAlt = 230

§

RightGUI = 231

Trait Implementations§

Source§

impl Clone for Keyboard

Source§

fn clone(&self) -> Keyboard

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Keyboard

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Keyboard> for u16

Conversion from Keyboard enum to u16

§Safety

Source§

fn from(index: Keyboard) -> u16

Converts to this type from the input type.
Source§

impl From<u16> for Keyboard

Conversion from u16 indexes to Keyboard enum

§Safety

Source§

fn from(index: u16) -> Keyboard

Converts to this type from the input type.
Source§

impl Hash for Keyboard

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Keyboard

Source§

fn eq(&self, other: &Keyboard) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Keyboard

Source§

impl Eq for Keyboard

Source§

impl StructuralPartialEq for Keyboard

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.