Enum VirtualKeyCode

Source
#[repr(u32)]
pub enum VirtualKeyCode {
Show 161 variants Key1 = 0, Key2 = 1, Key3 = 2, Key4 = 3, Key5 = 4, Key6 = 5, Key7 = 6, Key8 = 7, Key9 = 8, Key0 = 9, A = 10, B = 11, C = 12, D = 13, E = 14, F = 15, G = 16, H = 17, I = 18, J = 19, K = 20, L = 21, M = 22, N = 23, O = 24, P = 25, Q = 26, R = 27, S = 28, T = 29, U = 30, V = 31, W = 32, X = 33, Y = 34, Z = 35, Escape = 36, F1 = 37, F2 = 38, F3 = 39, F4 = 40, F5 = 41, F6 = 42, F7 = 43, F8 = 44, F9 = 45, F10 = 46, F11 = 47, F12 = 48, F13 = 49, F14 = 50, F15 = 51, F16 = 52, F17 = 53, F18 = 54, F19 = 55, F20 = 56, F21 = 57, F22 = 58, F23 = 59, F24 = 60, Snapshot = 61, Scroll = 62, Pause = 63, Insert = 64, Home = 65, Delete = 66, End = 67, PageDown = 68, PageUp = 69, Left = 70, Up = 71, Right = 72, Down = 73, Back = 74, Return = 75, Space = 76, Compose = 77, Caret = 78, Numlock = 79, Numpad0 = 80, Numpad1 = 81, Numpad2 = 82, Numpad3 = 83, Numpad4 = 84, Numpad5 = 85, Numpad6 = 86, Numpad7 = 87, Numpad8 = 88, Numpad9 = 89, AbntC1 = 90, AbntC2 = 91, Add = 92, Apostrophe = 93, Apps = 94, At = 95, Ax = 96, Backslash = 97, Calculator = 98, Capital = 99, Colon = 100, Comma = 101, Convert = 102, Decimal = 103, Divide = 104, Equals = 105, Grave = 106, Kana = 107, Kanji = 108, LAlt = 109, LBracket = 110, LControl = 111, LShift = 112, LWin = 113, Mail = 114, MediaSelect = 115, MediaStop = 116, Minus = 117, Multiply = 118, Mute = 119, MyComputer = 120, NavigateForward = 121, NavigateBackward = 122, NextTrack = 123, NoConvert = 124, NumpadComma = 125, NumpadEnter = 126, NumpadEquals = 127, OEM102 = 128, Period = 129, PlayPause = 130, Power = 131, PrevTrack = 132, RAlt = 133, RBracket = 134, RControl = 135, RShift = 136, RWin = 137, Semicolon = 138, Slash = 139, Sleep = 140, Stop = 141, Subtract = 142, Sysrq = 143, Tab = 144, Underline = 145, Unlabeled = 146, VolumeDown = 147, VolumeUp = 148, Wake = 149, WebBack = 150, WebFavorites = 151, WebForward = 152, WebHome = 153, WebRefresh = 154, WebSearch = 155, WebStop = 156, Yen = 157, Copy = 158, Paste = 159, Cut = 160,
}
Expand description

Symbolic name for a keyboard key.

Variants§

§

Key1 = 0

The ‘1’ key over the letters.

§

Key2 = 1

The ‘2’ key over the letters.

§

Key3 = 2

The ‘3’ key over the letters.

§

Key4 = 3

The ‘4’ key over the letters.

§

Key5 = 4

The ‘5’ key over the letters.

§

Key6 = 5

The ‘6’ key over the letters.

§

Key7 = 6

The ‘7’ key over the letters.

§

Key8 = 7

The ‘8’ key over the letters.

§

Key9 = 8

The ‘9’ key over the letters.

§

Key0 = 9

The ‘0’ key over the ‘O’ and ‘P’ keys.

§

A = 10

§

B = 11

§

C = 12

§

D = 13

§

E = 14

§

F = 15

§

G = 16

§

H = 17

§

I = 18

§

J = 19

§

K = 20

§

L = 21

§

M = 22

§

N = 23

§

O = 24

§

P = 25

§

Q = 26

§

R = 27

§

S = 28

§

T = 29

§

U = 30

§

V = 31

§

W = 32

§

X = 33

§

Y = 34

§

Z = 35

§

Escape = 36

The Escape key, next to F1.

§

F1 = 37

§

F2 = 38

§

F3 = 39

§

F4 = 40

§

F5 = 41

§

F6 = 42

§

F7 = 43

§

F8 = 44

§

F9 = 45

§

F10 = 46

§

F11 = 47

§

F12 = 48

§

F13 = 49

§

F14 = 50

§

F15 = 51

§

F16 = 52

§

F17 = 53

§

F18 = 54

§

F19 = 55

§

F20 = 56

§

F21 = 57

§

F22 = 58

§

F23 = 59

§

F24 = 60

§

Snapshot = 61

Print Screen/SysRq.

§

Scroll = 62

Scroll Lock.

§

Pause = 63

Pause/Break key, next to Scroll lock.

§

Insert = 64

Insert, next to Backspace.

§

Home = 65

§

Delete = 66

§

End = 67

§

PageDown = 68

§

PageUp = 69

§

Left = 70

§

Up = 71

§

Right = 72

§

Down = 73

§

Back = 74

The Backspace key, right over Enter.

§

Return = 75

The Enter key.

§

Space = 76

The space bar.

§

Compose = 77

The “Compose” key on Linux.

§

Caret = 78

§

Numlock = 79

§

Numpad0 = 80

§

Numpad1 = 81

§

Numpad2 = 82

§

Numpad3 = 83

§

Numpad4 = 84

§

Numpad5 = 85

§

Numpad6 = 86

§

Numpad7 = 87

§

Numpad8 = 88

§

Numpad9 = 89

§

AbntC1 = 90

§

AbntC2 = 91

§

Add = 92

§

Apostrophe = 93

§

Apps = 94

§

At = 95

§

Ax = 96

§

Backslash = 97

§

Calculator = 98

§

Capital = 99

§

Colon = 100

§

Comma = 101

§

Convert = 102

§

Decimal = 103

§

Divide = 104

§

Equals = 105

§

Grave = 106

§

Kana = 107

§

Kanji = 108

§

LAlt = 109

§

LBracket = 110

§

LControl = 111

§

LShift = 112

§

LWin = 113

§

Mail = 114

§

MediaSelect = 115

§

MediaStop = 116

§

Minus = 117

§

Multiply = 118

§

Mute = 119

§

MyComputer = 120

§

NavigateForward = 121

§

NavigateBackward = 122

§

NextTrack = 123

§

NoConvert = 124

§

NumpadComma = 125

§

NumpadEnter = 126

§

NumpadEquals = 127

§

OEM102 = 128

§

Period = 129

§

PlayPause = 130

§

Power = 131

§

PrevTrack = 132

§

RAlt = 133

§

RBracket = 134

§

RControl = 135

§

RShift = 136

§

RWin = 137

§

Semicolon = 138

§

Slash = 139

§

Sleep = 140

§

Stop = 141

§

Subtract = 142

§

Sysrq = 143

§

Tab = 144

§

Underline = 145

§

Unlabeled = 146

§

VolumeDown = 147

§

VolumeUp = 148

§

Wake = 149

§

WebBack = 150

§

WebFavorites = 151

§

WebForward = 152

§

WebHome = 153

§

WebRefresh = 154

§

WebSearch = 155

§

WebStop = 156

§

Yen = 157

§

Copy = 158

§

Paste = 159

§

Cut = 160

Trait Implementations§

Source§

impl Clone for VirtualKeyCode

Source§

fn clone(&self) -> VirtualKeyCode

Returns a copy 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 VirtualKeyCode

Source§

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

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

impl<'de> Deserialize<'de> for VirtualKeyCode

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<VirtualKeyCode, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<VirtualKeyCode> for Button

Source§

fn from(keycode: VirtualKeyCode) -> Self

Converts to this type from the input type.
Source§

impl Hash for VirtualKeyCode

Source§

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

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 Ord for VirtualKeyCode

Source§

fn cmp(&self, other: &VirtualKeyCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for VirtualKeyCode

Source§

fn eq(&self, other: &VirtualKeyCode) -> 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 PartialOrd for VirtualKeyCode

Source§

fn partial_cmp(&self, other: &VirtualKeyCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for VirtualKeyCode

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for VirtualKeyCode

Source§

impl Eq for VirtualKeyCode

Source§

impl StructuralPartialEq for VirtualKeyCode

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> Any for T
where T: Any,

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> Config for T
where T: for<'a> Deserialize<'a> + Serialize,

Source§

fn load<P>(path: P) -> Result<T, ConfigError>
where P: AsRef<Path>,

Loads a configuration structure from a file.
Source§

fn load_bytes(bytes: &[u8]) -> Result<T, ConfigError>

Loads configuration structure from raw bytes.
Source§

fn write<P>(&self, path: P) -> Result<(), ConfigError>
where P: AsRef<Path>,

Writes a configuration structure to a file.
Source§

fn load_no_fallback<P>(path: P) -> Result<Self, ConfigError>
where P: AsRef<Path>,

👎Deprecated: use load instead
Loads a configuration structure from a file.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Scalar for T
where T: Copy + PartialEq + Debug + Any,

Source§

fn is<T>() -> bool
where T: Scalar,

Tests if Self the same as the type T Read more
Source§

impl<T> SetParameter for T

Source§

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result
where T: Parameter<Self>,

Sets value as a parameter of self.
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

unsafe fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Event for T
where T: Send + Sync + 'static,

Source§

impl<T> Resource for T
where T: Any + Send + Sync,