#[repr(C)]
pub enum KeyboardKey {
Show 109 variants Null, Apostrophe, Comma, Minus, Period, Slash, Zero, One, Two, Three, Four, Five, Six, Seven, Eight, Nine, Semicolon, Equal, 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, LeftBracket, Backslash, RightBracket, Grave, Space, Escape, Enter, Tab, Backspace, Insert, Delete, Right, Left, Down, Up, PageUp, PageDown, Home, End, CapsLock, ScrollLock, NumLock, PrintScreen, Pause, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, LeftShift, LeftControl, LeftAlt, LeftSuper, RightShift, RightControl, RightAlt, RightSuper, KbMenu, Kp0, Kp1, Kp2, Kp3, Kp4, Kp5, Kp6, Kp7, Kp8, Kp9, KpDecimal, KpDivide, KpMultiply, KpSubtract, KpAdd, KpEnter, KpEqual, Back, VolumeUp, VolumeDown,
}
Expand description

Keyboard keys (US keyboard layout)

Variants§

§

Null

Key: NULL, used for no key pressed

§

Apostrophe

Key: ’

§

Comma

Key: ,

§

Minus

Key: -

§

Period

Key: .

§

Slash

Key: /

§

Zero

Key: 0

§

One

Key: 1

§

Two

Key: 2

§

Three

Key: 3

§

Four

Key: 4

§

Five

Key: 5

§

Six

Key: 6

§

Seven

Key: 7

§

Eight

Key: 8

§

Nine

Key: 9

§

Semicolon

Key: ;

§

Equal

Key: =

§

A

Key: A | a

§

B

Key: B | b

§

C

Key: C | c

§

D

Key: D | d

§

E

Key: E | e

§

F

Key: F | f

§

G

Key: G | g

§

H

Key: H | h

§

I

Key: I | i

§

J

Key: J | j

§

K

Key: K | k

§

L

Key: L | l

§

M

Key: M | m

§

N

Key: N | n

§

O

Key: O | o

§

P

Key: P | p

§

Q

Key: Q | q

§

R

Key: R | r

§

S

Key: S | s

§

T

Key: T | t

§

U

Key: U | u

§

V

Key: V | v

§

W

Key: W | w

§

X

Key: X | x

§

Y

Key: Y | y

§

Z

Key: Z | z

§

LeftBracket

Key: [

§

Backslash

Key: ’'

§

RightBracket

Key: ]

§

Grave

Key: `

§

Space

Key: Space

§

Escape

Key: Esc

§

Enter

Key: Enter

§

Tab

Key: Tab

§

Backspace

Key: Backspace

§

Insert

Key: Ins

§

Delete

Key: Del

§

Right

Key: Cursor right

§

Left

Key: Cursor left

§

Down

Key: Cursor down

§

Up

Key: Cursor up

§

PageUp

Key: Page up

§

PageDown

Key: Page down

§

Home

Key: Home

§

End

Key: End

§

CapsLock

Key: Caps lock

§

ScrollLock

Key: Scroll down

§

NumLock

Key: Num lock

§

PrintScreen

Key: Print screen

§

Pause

Key: Pause

§

F1

Key: F1

§

F2

Key: F2

§

F3

Key: F3

§

F4

Key: F4

§

F5

Key: F5

§

F6

Key: F6

§

F7

Key: F7

§

F8

Key: F8

§

F9

Key: F9

§

F10

Key: F10

§

F11

Key: F11

§

F12

Key: F12

§

LeftShift

Key: Shift left

§

LeftControl

Key: Control left

§

LeftAlt

Key: Alt left

§

LeftSuper

Key: Super left

§

RightShift

Key: Shift right

§

RightControl

Key: Control right

§

RightAlt

Key: Alt right

§

RightSuper

Key: Super right

§

KbMenu

Key: KB menu

§

Kp0

Key: Keypad 0

§

Kp1

Key: Keypad 1

§

Kp2

Key: Keypad 2

§

Kp3

Key: Keypad 3

§

Kp4

Key: Keypad 4

§

Kp5

Key: Keypad 5

§

Kp6

Key: Keypad 6

§

Kp7

Key: Keypad 7

§

Kp8

Key: Keypad 8

§

Kp9

Key: Keypad 9

§

KpDecimal

Key: Keypad .

§

KpDivide

Key: Keypad /

§

KpMultiply

Key: Keypad *

§

KpSubtract

Key: Keypad -

§

KpAdd

Key: Keypad +

§

KpEnter

Key: Keypad Enter

§

KpEqual

Key: Keypad =

§

Back

Key: Android back button

§

VolumeUp

Key: Android volume up button

§

VolumeDown

Key: Android volume down button

Trait Implementations§

source§

impl Clone for KeyboardKey

source§

fn clone(&self) -> KeyboardKey

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 KeyboardKey

source§

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

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

impl Hash for KeyboardKey

source§

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

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 PartialEq<KeyboardKey> for KeyboardKey

source§

fn eq(&self, other: &KeyboardKey) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for KeyboardKey

source§

impl Eq for KeyboardKey

source§

impl StructuralEq for KeyboardKey

source§

impl StructuralPartialEq for KeyboardKey

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for Twhere T: Clone,

§

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