#[repr(C)]
pub enum KeyboardKey {
Show 109 variants KEYNULL, KEYAPOSTROPHE, KEYCOMMA, KEYMINUS, KEYPERIOD, KEYSLASH, KEYZERO, KEYONE, KEYTWO, KEYTHREE, KEYFOUR, KEYFIVE, KEYSIX, KEYSEVEN, KEYEIGHT, KEYNINE, KEYSEMICOLON, KEYEQUAL, KEYA, KEYB, KEYC, KEYD, KEYE, KEYF, KEYG, KEYH, KEYI, KEYJ, KEYK, KEYL, KEYM, KEYN, KEYO, KEYP, KEYQ, KEYR, KEYS, KEYT, KEYU, KEYV, KEYW, KEYX, KEYY, KEYZ, KEYLEFTBRACKET, KEYBACKSLASH, KEYRIGHTBRACKET, KEYGRAVE, KEYSPACE, KEYESCAPE, KEYENTER, KEYTAB, KEYBACKSPACE, KEYINSERT, KEYDELETE, KEYRIGHT, KEYLEFT, KEYDOWN, KEYUP, KEYPAGEUP, KEYPAGEDOWN, KEYHOME, KEYEND, KEYCAPSLOCK, KEYSCROLLLOCK, KEYNUMLOCK, KEYPRINTSCREEN, KEYPAUSE, KEYF1, KEYF2, KEYF3, KEYF4, KEYF5, KEYF6, KEYF7, KEYF8, KEYF9, KEYF10, KEYF11, KEYF12, KEYLEFTSHIFT, KEYLEFTCONTROL, KEYLEFTALT, KEYLEFTSUPER, KEYRIGHTSHIFT, KEYRIGHTCONTROL, KEYRIGHTALT, KEYRIGHTSUPER, KEYKBMENU, KEYKP0, KEYKP1, KEYKP2, KEYKP3, KEYKP4, KEYKP5, KEYKP6, KEYKP7, KEYKP8, KEYKP9, KEYKPDECIMAL, KEYKPDIVIDE, KEYKPMULTIPLY, KEYKPSUBTRACT, KEYKPADD, KEYKPENTER, KEYKPEQUAL, KEYBACK, KEYVOLUMEUP, KEYVOLUMEDOWN,
}
Expand description

Keyboard keys (US keyboard layout)

Variants§

§

KEYNULL

Key: NULL, used for no key pressed

§

KEYAPOSTROPHE

Key: ’

§

KEYCOMMA

Key: ,

§

KEYMINUS

Key: -

§

KEYPERIOD

Key: .

§

KEYSLASH

Key: /

§

KEYZERO

Key: 0

§

KEYONE

Key: 1

§

KEYTWO

Key: 2

§

KEYTHREE

Key: 3

§

KEYFOUR

Key: 4

§

KEYFIVE

Key: 5

§

KEYSIX

Key: 6

§

KEYSEVEN

Key: 7

§

KEYEIGHT

Key: 8

§

KEYNINE

Key: 9

§

KEYSEMICOLON

Key: ;

§

KEYEQUAL

Key: =

§

KEYA

Key: A | a

§

KEYB

Key: B | b

§

KEYC

Key: C | c

§

KEYD

Key: D | d

§

KEYE

Key: E | e

§

KEYF

Key: F | f

§

KEYG

Key: G | g

§

KEYH

Key: H | h

§

KEYI

Key: I | i

§

KEYJ

Key: J | j

§

KEYK

Key: K | k

§

KEYL

Key: L | l

§

KEYM

Key: M | m

§

KEYN

Key: N | n

§

KEYO

Key: O | o

§

KEYP

Key: P | p

§

KEYQ

Key: Q | q

§

KEYR

Key: R | r

§

KEYS

Key: S | s

§

KEYT

Key: T | t

§

KEYU

Key: U | u

§

KEYV

Key: V | v

§

KEYW

Key: W | w

§

KEYX

Key: X | x

§

KEYY

Key: Y | y

§

KEYZ

Key: Z | z

§

KEYLEFTBRACKET

Key: [

§

KEYBACKSLASH

Key: ’'

§

KEYRIGHTBRACKET

Key: ]

§

KEYGRAVE

Key: `

§

KEYSPACE

Key: Space

§

KEYESCAPE

Key: Esc

§

KEYENTER

Key: Enter

§

KEYTAB

Key: Tab

§

KEYBACKSPACE

Key: Backspace

§

KEYINSERT

Key: Ins

§

KEYDELETE

Key: Del

§

KEYRIGHT

Key: Cursor right

§

KEYLEFT

Key: Cursor left

§

KEYDOWN

Key: Cursor down

§

KEYUP

Key: Cursor up

§

KEYPAGEUP

Key: Page up

§

KEYPAGEDOWN

Key: Page down

§

KEYHOME

Key: Home

§

KEYEND

Key: End

§

KEYCAPSLOCK

Key: Caps lock

§

KEYSCROLLLOCK

Key: Scroll down

§

KEYNUMLOCK

Key: Num lock

§

KEYPRINTSCREEN

Key: Print screen

§

KEYPAUSE

Key: Pause

§

KEYF1

Key: F1

§

KEYF2

Key: F2

§

KEYF3

Key: F3

§

KEYF4

Key: F4

§

KEYF5

Key: F5

§

KEYF6

Key: F6

§

KEYF7

Key: F7

§

KEYF8

Key: F8

§

KEYF9

Key: F9

§

KEYF10

Key: F10

§

KEYF11

Key: F11

§

KEYF12

Key: F12

§

KEYLEFTSHIFT

Key: Shift left

§

KEYLEFTCONTROL

Key: Control left

§

KEYLEFTALT

Key: Alt left

§

KEYLEFTSUPER

Key: Super left

§

KEYRIGHTSHIFT

Key: Shift right

§

KEYRIGHTCONTROL

Key: Control right

§

KEYRIGHTALT

Key: Alt right

§

KEYRIGHTSUPER

Key: Super right

§

KEYKBMENU

Key: KB menu

§

KEYKP0

Key: Keypad 0

§

KEYKP1

Key: Keypad 1

§

KEYKP2

Key: Keypad 2

§

KEYKP3

Key: Keypad 3

§

KEYKP4

Key: Keypad 4

§

KEYKP5

Key: Keypad 5

§

KEYKP6

Key: Keypad 6

§

KEYKP7

Key: Keypad 7

§

KEYKP8

Key: Keypad 8

§

KEYKP9

Key: Keypad 9

§

KEYKPDECIMAL

Key: Keypad .

§

KEYKPDIVIDE

Key: Keypad /

§

KEYKPMULTIPLY

Key: Keypad *

§

KEYKPSUBTRACT

Key: Keypad -

§

KEYKPADD

Key: Keypad +

§

KEYKPENTER

Key: Keypad Enter

§

KEYKPEQUAL

Key: Keypad =

§

KEYBACK

Key: Android back button

§

KEYVOLUMEUP

Key: Android volume up button

§

KEYVOLUMEDOWN

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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.
const: unstable · 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.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.