#[repr(u32)]
pub enum QwertyScanCode {
Show 107 variants
Escape,
Key1,
Key2,
Key3,
Key4,
Key5,
Key6,
Key7,
Key8,
Key9,
Key0,
Minus,
Equals,
Backspace,
Tab,
Q,
W,
E,
R,
T,
Y,
U,
I,
O,
P,
LBracket,
RBracket,
Enter,
LControl,
A,
S,
D,
F,
G,
H,
J,
K,
L,
SemiColon,
Apostrophe,
Backtick,
LShift,
Backslash,
Z,
X,
C,
V,
B,
N,
M,
Comma,
Period,
Slash,
RShift,
NumpadMultiply,
LAlt,
Space,
CapsLock,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
Numlock,
Scroll,
Numpad7,
Numpad8,
Numpad9,
NumpadSubtract,
Numpad4,
Numpad5,
Numpad6,
NumpadAdd,
Numpad1,
Numpad2,
Numpad3,
Numpad0,
NumpadDecimal,
F11,
F12,
NumpadEnter,
RControl,
NumpadDivide,
AltSysrq,
RAlt,
Home,
Up,
PageUp,
Left,
Right,
End,
Down,
PageDown,
Insert,
Delete,
Power,
Pause,
LWin,
RWin,
Menu,
Sleep,
Wake,
}Expand description
The key locations as defined by the keys on the QWERTY keyboard layout.
The u32 representation of this enum are scan codes of the corresponding keys on X-like Linux systems.
See https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h.
Variants§
Escape
The location of the Escape/Esc key on the QWERTY keyboard layout.
Key1
The location of the 1 key on the QWERTY keyboard layout.
Key2
The location of the 2 key on the QWERTY keyboard layout.
Key3
The location of the 3 key on the QWERTY keyboard layout.
Key4
The location of the 4 key on the QWERTY keyboard layout.
Key5
The location of the 5 key on the QWERTY keyboard layout.
Key6
The location of the 6 key on the QWERTY keyboard layout.
Key7
The location of the 7 key on the QWERTY keyboard layout.
Key8
The location of the 8 key on the QWERTY keyboard layout.
Key9
The location of the 9 key on the QWERTY keyboard layout.
Key0
The location of the 0 key on the QWERTY keyboard layout.
Minus
The location of the - key on the QWERTY keyboard layout.
Equals
The location of the = key on the QWERTY keyboard layout.
Backspace
The location of the back(space) key on the QWERTY keyboard layout.
Tab
The location of the tabulator key on the QWERTY keyboard layout.
Q
The location of the Q key on the QWERTY keyboard layout.
W
The location of the W key on the QWERTY keyboard layout.
E
The location of the E key on the QWERTY keyboard layout.
R
The location of the R key on the QWERTY keyboard layout.
T
The location of the T key on the QWERTY keyboard layout.
Y
The location of the Y key on the QWERTY keyboard layout.
U
The location of the U key on the QWERTY keyboard layout.
I
The location of the I key on the QWERTY keyboard layout.
O
The location of the O key on the QWERTY keyboard layout.
P
The location of the P key on the QWERTY keyboard layout.
LBracket
The location of the [ key on the QWERTY keyboard layout.
RBracket
The location of the ] key on the QWERTY keyboard layout.
Enter
The location of the Enter/Return key on the QWERTY keyboard layout.
LControl
The location of the left Control key on the QWERTY keyboard layout.
A
The location of the A key on the QWERTY keyboard layout.
S
The location of the S key on the QWERTY keyboard layout.
D
The location of the D key on the QWERTY keyboard layout.
F
The location of the F key on the QWERTY keyboard layout.
G
The location of the G key on the QWERTY keyboard layout.
H
The location of the H key on the QWERTY keyboard layout.
J
The location of the J key on the QWERTY keyboard layout.
K
The location of the K key on the QWERTY keyboard layout.
L
The location of the L key on the QWERTY keyboard layout.
SemiColon
The location of the ; key on the QWERTY keyboard layout.
Apostrophe
The location of the ' key on the QWERTY keyboard layout.
Backtick
The location of the ` key on the QWERTY keyboard layout.
LShift
The location of the left Shift key on the QWERTY keyboard layout.
Backslash
The location of the \ on the QWERTY keyboard layout.
Z
The location of the Z key on the QWERTY keyboard layout.
X
The location of the X key on the QWERTY keyboard layout.
C
The location of the C key on the QWERTY keyboard layout.
V
The location of the `V key on the QWERTY keyboard layout.
B
The location of the B key on the QWERTY keyboard layout.
N
The location of the N key on the QWERTY keyboard layout.
M
The location of the M key on the QWERTY keyboard layout.
Comma
The location of the , key on the QWERTY keyboard layout.
Period
The location of the . key on the QWERTY keyboard layout.
Slash
The location of the / key on the QWERTY keyboard layout.
RShift
The location of the right Shift key on the QWERTY keyboard layout.
NumpadMultiply
The location of the * key on the numpad of the QWERTY keyboard layout.
Maps to NumpadDivide on Apple keyboards.
LAlt
The location of the left Alt key on the QWERTY keyboard layout. Maps to left Option key on Apple keyboards.
Space
The location of the Space key on the QWERTY keyboard layout.
CapsLock
The location of the caps lock key on the QWERTY keyboard layout.
F1
The location of the F1 key on the QWERTY keyboard layout.
F2
The location of the F2 key on the QWERTY keyboard layout.
F3
The location of the F3 key on the QWERTY keyboard layout.
F4
The location of the F4 key on the QWERTY keyboard layout.
F5
The location of the F5 key on the QWERTY keyboard layout.
F6
The location of the F6 key on the QWERTY keyboard layout.
F7
The location of the F7 key on the QWERTY keyboard layout.
F8
The location of the F8 key on the QWERTY keyboard layout.
F9
The location of the F9 key on the QWERTY keyboard layout.
F10
The location of the F10 key on the QWERTY keyboard layout.
Numlock
The location of the Numlock key on the QWERTY keyboard layout.
Maps to NumpadClear on Apple keyboards.
Scroll
The location of the Scroll / Scroll Lock key on the QWERTY keyboard layout.
Maps to the F14 key on Apple keyboards.
Numpad7
The location of the 7 key on the numpad of the QWERTY keyboard layout.
Numpad8
The location of the 8 key on the numpad of the QWERTY keyboard layout.
Numpad9
The location of the 9 key on the numpad of the QWERTY keyboard layout.
NumpadSubtract
The location of the * key on the numpad of the QWERTY keyboard layout.
Maps to NumpadMultiply on Apple keyboards.
Numpad4
The location of the 4 key on the numpad of the QWERTY keyboard layout.
Numpad5
The location of the 5 key on the numpad of the QWERTY keyboard layout.
Numpad6
The location of the 6 key on the numpad of the QWERTY keyboard layout.
NumpadAdd
The location of the + key on the numpad of the QWERTY keyboard layout.
Numpad1
The location of the 1 key on the numpad of the QWERTY keyboard layout.
Numpad2
The location of the 2 key on the numpad of the QWERTY keyboard layout.
Numpad3
The location of the 3 key on the numpad of the QWERTY keyboard layout.
Numpad0
The location of the 0 key on the numpad of the QWERTY keyboard layout.
NumpadDecimal
The location of the . key on the numpad of the QWERTY keyboard layout.
F11
The location of the F11 key on the QWERTY keyboard layout.
F12
The location of the F12 key on the QWERTY keyboard layout.
NumpadEnter
The location of the Enter key on the numpad of the QWERTY keyboard layout.
RControl
The location of the right Control key on the QWERTY keyboard layout.
NumpadDivide
The location of the / key on the numpad of the QWERTY keyboard layout.
Maps to NumpadEquals on Apple keyboards.
AltSysrq
The location of the Alt+Sysrq key on the QWERTY keyboard layout.
RAlt
The location of the right Alt key on the QWERTY keyboard layout. Maps to right Option key on Apple keyboards.
Home
The location of the Home key on the QWERTY keyboard layout.
Up
The location of the Arrow Up key on the QWERTY keyboard layout.
PageUp
The location of the Page Up key on the QWERTY keyboard layout.
Left
The location of the Arrow Left key on the QWERTY keyboard layout.
Right
The location of the Arrow Right key on the QWERTY keyboard layout.
End
The location of the End key on the QWERTY keyboard layout.
Down
The location of the Arrow Down key on the QWERTY keyboard layout.
PageDown
The location of the Page Down key on the QWERTY keyboard layout.
Insert
The location of the Insert key on the QWERTY keyboard layout. Maps to the Help key on Apple keyboards.
Delete
The location of the Delete key on the QWERTY keyboard layout.
Power
The location of the Power key on the QWERTY keyboard layout.
Pause
The location of the Pause key on the QWERTY keyboard layout.
Maps to the F15 key on Apple keyboards.
LWin
The location of the left Windows key on the QWERTY keyboard layout. Maps to the Command key on Apple keyboards.
RWin
The location of the right Windows key on the QWERTY keyboard layout.
Menu
The location of the Menu key on the QWERTY keyboard layout.
Sleep
The location of the Sleep key on the QWERTY keyboard layout.
Wake
The location of the Wake key on the QWERTY keyboard layout.
Trait Implementations§
source§impl From<QwertyScanCode> for InputKind
impl From<QwertyScanCode> for InputKind
source§fn from(input: QwertyScanCode) -> Self
fn from(input: QwertyScanCode) -> Self
source§impl From<QwertyScanCode> for ScanCode
impl From<QwertyScanCode> for ScanCode
source§fn from(value: QwertyScanCode) -> Self
fn from(value: QwertyScanCode) -> Self
source§impl From<QwertyScanCode> for UserInput
impl From<QwertyScanCode> for UserInput
source§fn from(input: QwertyScanCode) -> Self
fn from(input: QwertyScanCode) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for QwertyScanCode
impl Send for QwertyScanCode
impl Sync for QwertyScanCode
impl Unpin for QwertyScanCode
impl UnwindSafe for QwertyScanCode
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere U: ShaderType, &'a T: for<'a> Into<U>,
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
T [ShaderType] for self. When used in [AsBindGroup]
derives, it is safe to assume that all images in self exist.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.