#[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, BracketLeft, BracketRight, Enter, ControlLeft, A, S, D, F, G, H, J, K, L, SemiColon, Apostrophe, Backtick, ShiftLeft, Backslash, Z, X, C, V, B, N, M, Comma, Period, Slash, ShiftRight, NumpadMultiply, AltLeft, 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, ControlRight, NumpadDivide, AltSysrq, AltRight, Home, Up, PageUp, Left, Right, End, Down, PageDown, Insert, Delete, Power, Pause, SuperLeft, SuperRight, 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.

§

BracketLeft

The location of the [ key on the QWERTY keyboard layout.

§

BracketRight

The location of the ] key on the QWERTY keyboard layout.

§

Enter

The location of the Enter/Return key on the QWERTY keyboard layout.

§

ControlLeft

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.

§

ShiftLeft

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.

§

ShiftRight

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.

§

AltLeft

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.

§

ControlRight

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.

§

AltRight

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.

§

SuperLeft

The location of the left Windows key on the QWERTY keyboard layout. Maps to the Command key on Apple keyboards.

§

SuperRight

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

source§

fn from(input: QwertyScanCode) -> Self

Converts to this type from the input type.
source§

impl From<QwertyScanCode> for ScanCode

source§

fn from(value: QwertyScanCode) -> Self

Converts to this type from the input type.
source§

impl From<QwertyScanCode> for UserInput

source§

fn from(input: QwertyScanCode) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

Return the T [ShaderType] for self. When used in [AsBindGroup] derives, it is safe to assume that all images in self exist.
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

§

impl<T> Downcast for Twhere T: Any,

§

fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>

Convert 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>

Convert 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)

Convert &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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for Twhere T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere 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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more