Enum pc_keyboard::KeyCode

source ·
pub enum KeyCode {
Show 114 variants AltLeft, AltRight, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, BackSlash, Backspace, BackTick, BracketSquareLeft, BracketSquareRight, CapsLock, Comma, ControlLeft, ControlRight, Delete, End, Enter, Escape, Equals, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Fullstop, Home, Insert, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key0, Menus, Minus, Numpad0, Numpad1, Numpad2, Numpad3, Numpad4, Numpad5, Numpad6, Numpad7, Numpad8, Numpad9, NumpadEnter, NumpadLock, NumpadSlash, NumpadStar, NumpadMinus, NumpadPeriod, NumpadPlus, PageDown, PageUp, PauseBreak, PrintScreen, ScrollLock, SemiColon, ShiftLeft, ShiftRight, Slash, Spacebar, Tab, Quote, WindowsLeft, WindowsRight, 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, HashTilde, PrevTrack, NextTrack, Mute, Calculator, Play, Stop, VolumeDown, VolumeUp, WWWHome,
}
Expand description

Keycodes that can be generated by a keyboard.

Variants

AltLeft

AltRight

ArrowDown

ArrowLeft

ArrowRight

ArrowUp

BackSlash

Backspace

BackTick

BracketSquareLeft

BracketSquareRight

CapsLock

Comma

ControlLeft

ControlRight

Delete

End

Enter

Escape

Equals

F1

F2

F3

F4

F5

F6

F7

F8

F9

F10

F11

F12

Fullstop

Home

Insert

Key1

Key2

Key3

Key4

Key5

Key6

Key7

Key8

Key9

Key0

Menus

Minus

Numpad0

Numpad1

Numpad2

Numpad3

Numpad4

Numpad5

Numpad6

Numpad7

Numpad8

Numpad9

NumpadEnter

NumpadLock

NumpadSlash

NumpadStar

NumpadMinus

NumpadPeriod

NumpadPlus

PageDown

PageUp

PauseBreak

PrintScreen

ScrollLock

SemiColon

ShiftLeft

ShiftRight

Slash

Spacebar

Tab

Quote

WindowsLeft

WindowsRight

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

HashTilde

Not on US keyboards

PrevTrack

NextTrack

Mute

Calculator

Play

Stop

VolumeDown

VolumeUp

WWWHome

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.