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
sourceimpl Ord for KeyCode
impl Ord for KeyCode
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<KeyCode> for KeyCode
impl PartialOrd<KeyCode> for KeyCode
sourcefn partial_cmp(&self, other: &KeyCode) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyCode) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for KeyCode
impl Eq for KeyCode
impl StructuralEq for KeyCode
impl StructuralPartialEq for KeyCode
Auto Trait Implementations
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnwindSafe for KeyCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more