Enum bones_framework::input::keyboard::KeyCode
source · #[repr(u32)]pub enum KeyCode {
Show 163 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,
NumpadAdd = 92,
Apostrophe = 93,
Apps = 94,
Asterisk = 95,
Plus = 96,
At = 97,
Ax = 98,
Backslash = 99,
Calculator = 100,
Capital = 101,
Colon = 102,
Comma = 103,
Convert = 104,
NumpadDecimal = 105,
NumpadDivide = 106,
Equals = 107,
Grave = 108,
Kana = 109,
Kanji = 110,
AltLeft = 111,
BracketLeft = 112,
ControlLeft = 113,
ShiftLeft = 114,
SuperLeft = 115,
Mail = 116,
MediaSelect = 117,
MediaStop = 118,
Minus = 119,
NumpadMultiply = 120,
Mute = 121,
MyComputer = 122,
NavigateForward = 123,
NavigateBackward = 124,
NextTrack = 125,
NoConvert = 126,
NumpadComma = 127,
NumpadEnter = 128,
NumpadEquals = 129,
Oem102 = 130,
Period = 131,
PlayPause = 132,
Power = 133,
PrevTrack = 134,
AltRight = 135,
BracketRight = 136,
ControlRight = 137,
ShiftRight = 138,
SuperRight = 139,
Semicolon = 140,
Slash = 141,
Sleep = 142,
Stop = 143,
NumpadSubtract = 144,
Sysrq = 145,
Tab = 146,
Underline = 147,
Unlabeled = 148,
VolumeDown = 149,
VolumeUp = 150,
Wake = 151,
WebBack = 152,
WebFavorites = 153,
WebForward = 154,
WebHome = 155,
WebRefresh = 156,
WebSearch = 157,
WebStop = 158,
Yen = 159,
Copy = 160,
Paste = 161,
Cut = 162,
}
Expand description
The key code of 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 letters.
A = 10
The A
key.
B = 11
The B
key.
C = 12
The C
key.
D = 13
The D
key.
E = 14
The E
key.
F = 15
The F
key.
G = 16
The G
key.
H = 17
The H
key.
I = 18
The I
key.
J = 19
The J
key.
K = 20
The K
key.
L = 21
The L
key.
M = 22
The M
key.
N = 23
The N
key.
O = 24
The O
key.
P = 25
The P
key.
Q = 26
The Q
key.
R = 27
The R
key.
S = 28
The S
key.
T = 29
The T
key.
U = 30
The U
key.
V = 31
The V
key.
W = 32
The W
key.
X = 33
The X
key.
Y = 34
The Y
key.
Z = 35
The Z
key.
Escape = 36
The Escape
/ ESC
key, next to the F1
key.
F1 = 37
The F1
key.
F2 = 38
The F2
key.
F3 = 39
The F3
key.
F4 = 40
The F4
key.
F5 = 41
The F5
key.
F6 = 42
The F6
key.
F7 = 43
The F7
key.
F8 = 44
The F8
key.
F9 = 45
The F9
key.
F10 = 46
The F10
key.
F11 = 47
The F11
key.
F12 = 48
The F12
key.
F13 = 49
The F13
key.
F14 = 50
The F14
key.
F15 = 51
The F15
key.
F16 = 52
The F16
key.
F17 = 53
The F17
key.
F18 = 54
The F18
key.
F19 = 55
The F19
key.
F20 = 56
The F20
key.
F21 = 57
The F21
key.
F22 = 58
The F22
key.
F23 = 59
The F23
key.
F24 = 60
The F24
key.
Snapshot = 61
The Snapshot
/ Print Screen
key.
Scroll = 62
The Scroll
/ Scroll Lock
key.
Pause = 63
The Pause
/ Break
key, next to the Scroll
key.
Insert = 64
The Insert
key, next to the Backspace
key.
Home = 65
The Home
key.
Delete = 66
The Delete
key.
End = 67
The End
key.
PageDown = 68
The PageDown
key.
PageUp = 69
The PageUp
key.
Left = 70
The Left
/ Left Arrow
key.
Up = 71
The Up
/ Up Arrow
key.
Right = 72
The Right
/ Right Arrow
key.
Down = 73
The Down
/ Down Arrow
key.
Back = 74
The Back
/ Backspace
key.
Return = 75
The Return
/ Enter
key.
Space = 76
The Space
/ Spacebar
/
key.
Compose = 77
The Compose
key on Linux.
Caret = 78
The Caret
/ ^
key.
Numlock = 79
The Numlock
key.
Numpad0 = 80
The Numpad0
/ 0
key.
Numpad1 = 81
The Numpad1
/ 1
key.
Numpad2 = 82
The Numpad2
/ 2
key.
Numpad3 = 83
The Numpad3
/ 3
key.
Numpad4 = 84
The Numpad4
/ 4
key.
Numpad5 = 85
The Numpad5
/ 5
key.
Numpad6 = 86
The Numpad6
/ 6
key.
Numpad7 = 87
The Numpad7
/ 7
key.
Numpad8 = 88
The Numpad8
/ 8
key.
Numpad9 = 89
The Numpad9
/ 9
key.
AbntC1 = 90
The AbntC1
key.
AbntC2 = 91
The AbntC2
key.
NumpadAdd = 92
The NumpadAdd
/ +
key.
Apostrophe = 93
The Apostrophe
/ '
key.
Apps = 94
The Apps
key.
Asterisk = 95
The Asterisk
/ *
key.
Plus = 96
The Plus
/ +
key.
At = 97
The At
/ @
key.
Ax = 98
The Ax
key.
Backslash = 99
The Backslash
/ \
key.
Calculator = 100
The Calculator
key.
Capital = 101
The Capital
key.
Colon = 102
The Colon
/ :
key.
Comma = 103
The Comma
/ ,
key.
Convert = 104
The Convert
key.
NumpadDecimal = 105
The NumpadDecimal
/ .
key.
NumpadDivide = 106
The NumpadDivide
/ /
key.
Equals = 107
The Equals
/ =
key.
Grave = 108
The Grave
/ Backtick
/ `
key.
Kana = 109
The Kana
key.
Kanji = 110
The Kanji
key.
AltLeft = 111
The Left Alt
key. Maps to Left Option
on Mac.
BracketLeft = 112
The Left Bracket
/ [
key.
ControlLeft = 113
The Left Control
key.
ShiftLeft = 114
The Left Shift
key.
SuperLeft = 115
The Left Super
key.
Generic keyboards usually display this key with the Microsoft Windows logo.
Apple keyboards call this key the Command Key and display it using the ⌘ character.
Mail = 116
The Mail
key.
MediaSelect = 117
The MediaSelect
key.
MediaStop = 118
The MediaStop
key.
Minus = 119
The Minus
/ -
key.
NumpadMultiply = 120
The NumpadMultiply
/ *
key.
Mute = 121
The Mute
key.
MyComputer = 122
The MyComputer
key.
The NavigateForward
/ Prior
key.
The NavigateBackward
/ Next
key.
NextTrack = 125
The NextTrack
key.
NoConvert = 126
The NoConvert
key.
NumpadComma = 127
The NumpadComma
/ ,
key.
NumpadEnter = 128
The NumpadEnter
key.
NumpadEquals = 129
The NumpadEquals
/ =
key.
Oem102 = 130
The Oem102
key.
Period = 131
The Period
/ .
key.
PlayPause = 132
The PlayPause
key.
Power = 133
The Power
key.
PrevTrack = 134
The PrevTrack
key.
AltRight = 135
The Right Alt
key. Maps to Right Option
on Mac.
BracketRight = 136
The Right Bracket
/ ]
key.
ControlRight = 137
The Right Control
key.
ShiftRight = 138
The Right Shift
key.
SuperRight = 139
The Right Super
key.
Generic keyboards usually display this key with the Microsoft Windows logo.
Apple keyboards call this key the Command Key and display it using the ⌘ character.
Semicolon = 140
The Semicolon
/ ;
key.
Slash = 141
The Slash
/ /
key.
Sleep = 142
The Sleep
key.
Stop = 143
The Stop
key.
NumpadSubtract = 144
The NumpadSubtract
/ -
key.
Sysrq = 145
The Sysrq
key.
Tab = 146
The Tab
/
key.
Underline = 147
The Underline
/ _
key.
Unlabeled = 148
The Unlabeled
key.
VolumeDown = 149
The VolumeDown
key.
VolumeUp = 150
The VolumeUp
key.
Wake = 151
The Wake
key.
WebBack = 152
The WebBack
key.
WebFavorites = 153
The WebFavorites
key.
WebForward = 154
The WebForward
key.
WebHome = 155
The WebHome
key.
WebRefresh = 156
The WebRefresh
key.
WebSearch = 157
The WebSearch
key.
WebStop = 158
The WebStop
key.
Yen = 159
The Yen
key.
Copy = 160
The Copy
key.
Paste = 161
The Paste
key.
Cut = 162
The Cut
key.
Trait Implementations§
source§impl HasSchema for KeyCode
impl HasSchema for KeyCode
source§fn register_schema()
fn register_schema()
source§fn cast<T>(this: &Self) -> &Twhere
T: HasSchema,
fn cast<T>(this: &Self) -> &Twhere
T: HasSchema,
source§fn try_cast<T>(this: &Self) -> Result<&T, SchemaMismatchError>where
T: HasSchema,
fn try_cast<T>(this: &Self) -> Result<&T, SchemaMismatchError>where
T: HasSchema,
source§fn cast_mut<T>(this: &mut Self) -> &mut Twhere
T: HasSchema,
fn cast_mut<T>(this: &mut Self) -> &mut Twhere
T: HasSchema,
source§fn try_cast_mut<T>(this: &mut Self) -> Result<&mut T, SchemaMismatchError>where
T: HasSchema,
fn try_cast_mut<T>(this: &mut Self) -> Result<&mut T, SchemaMismatchError>where
T: HasSchema,
source§fn as_schema_ref(&self) -> SchemaRef<'_>where
Self: Sized,
fn as_schema_ref(&self) -> SchemaRef<'_>where
Self: Sized,
T
to a SchemaRef
source§fn as_schema_mut(&mut self) -> SchemaRefMut<'_>where
Self: Sized,
fn as_schema_mut(&mut self) -> SchemaRefMut<'_>where
Self: Sized,
T
to a SchemaRefMut
source§impl PartialEq for KeyCode
impl PartialEq for KeyCode
impl Copy for KeyCode
impl Eq for KeyCode
impl StructuralPartialEq for KeyCode
Auto Trait Implementations§
impl Freeze for KeyCode
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnwindSafe for KeyCode
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Conv for T
impl<T> Conv for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
source§fn from_world(_world: &World) -> T
fn from_world(_world: &World) -> T
Self
using data from the given World
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoArcAny for T
impl<T> IntoArcAny for T
§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.source§impl<T> RawDefault for Twhere
T: Default,
impl<T> RawDefault for Twhere
T: Default,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.