[][src]Enum riddle_input::VirtualKey

#[repr(u16)]pub enum VirtualKey {
    Unknown,
    Escape,
    One,
    Two,
    Three,
    Four,
    Five,
    Six,
    Seven,
    Eight,
    Nine,
    Zero,
    Minus,
    Equal,
    Backspace,
    Tab,
    Q,
    W,
    E,
    R,
    T,
    Y,
    U,
    I,
    O,
    P,
    LeftBrace,
    RightBrace,
    Enter,
    LeftControl,
    A,
    D,
    S,
    F,
    G,
    H,
    J,
    K,
    L,
    Semicolon,
    Apostrope,
    Grave,
    LeftShift,
    Backslash,
    Z,
    X,
    C,
    V,
    B,
    N,
    M,
    Comma,
    Dot,
    Slash,
    RightShift,
    KeyPadAsterick,
    LeftAlt,
    Space,
    CapsLock,
    F1,
    F2,
    F3,
    F4,
    F5,
    F6,
    F7,
    F8,
    F9,
    F10,
    NumLock,
    ScrollLock,
    KeyPad7,
    KeyPad8,
    KeyPad9,
    KeyPadMinus,
    KeyPad4,
    KeyPad5,
    KeyPad6,
    KeyPadPlus,
    KeyPad1,
    KeyPad2,
    KeyPad3,
    KeyPad0,
    KeyPadDot,
    NonUSBackslash,
    F11,
    F12,
    KeyPadEnter,
    RightAlt,
    Home,
    Up,
    PageUp,
    Left,
    Right,
    End,
    Down,
    PageDown,
    Insert,
    Delete,
    KeyPadEqual,
    KeyPadPlusMinus,
}

Supported virtual keys.

Virtual keys represent the intended meaning of the key, and have no relation to where the key physically is on the keyboard. Use virtual key where the meaning of the key is most important (textual input). When meaning matters less, but physical location is more important (WASD-like control schemes) use crate::Scancode.

Variants

Unknown
Escape
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
Zero
Minus
Equal
Backspace
Tab
Q
W
E
R
T
Y
U
I
O
P
LeftBrace
RightBrace
Enter
LeftControl
A
D
S
F
G
H
J
K
L
Semicolon
Apostrope
Grave
LeftShift
Backslash
Z
X
C
V
B
N
M
Comma
Dot
Slash
RightShift
KeyPadAsterick
LeftAlt
Space
CapsLock
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
NumLock
ScrollLock
KeyPad7
KeyPad8
KeyPad9
KeyPadMinus
KeyPad4
KeyPad5
KeyPad6
KeyPadPlus
KeyPad1
KeyPad2
KeyPad3
KeyPad0
KeyPadDot
NonUSBackslash
F11
F12
KeyPadEnter
RightAlt
Home
Up
PageUp
Left
Right
End
Down
PageDown
Insert
Delete
KeyPadEqual
KeyPadPlusMinus

Trait Implementations

impl Clone for VirtualKey[src]

impl Copy for VirtualKey[src]

impl Debug for VirtualKey[src]

impl Eq for VirtualKey[src]

impl PartialEq<VirtualKey> for VirtualKey[src]

impl StructuralEq for VirtualKey[src]

impl StructuralPartialEq for VirtualKey[src]

Auto Trait Implementations

impl RefUnwindSafe for VirtualKey

impl Send for VirtualKey

impl Sync for VirtualKey

impl Unpin for VirtualKey

impl UnwindSafe for VirtualKey

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.