[][src]Enum winconsole::input::KeyCode

#[repr(u8)]
pub enum KeyCode { None, LButton, RButton, Cancel, MButton, XButton1, XButton2, Backspace, Tab, Clear, Return, Shift, Control, Menu, Pause, Capital, KanaHangul, Junja, Final, HanjaKanji, Escape, Convert, NonConvert, Accept, ModeChange, Space, PageUp, PageDown, End, Home, Left, Up, Right, Down, Select, Print, Execute, Snapshot, Insert, Delete, Help, Zero, One, Two, Three, Four, Five, Six, Seven, Eight, Nine, 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, LWin, RWin, Apps, Sleep, Numpad0, Numpad1, Numpad2, Numpad3, Numpad4, Numpad5, Numpad6, Numpad7, Numpad8, Numpad9, Multiply, Add, Separator, Subtract, Decimal, Divide, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24, NumLock, Scroll, LShift, RShift, LControl, RControl, LMenu, RMenu, BrowserBack, BrowserForward, BrowserRefresh, BrowserStop, BrowserSearch, BrowserFavorites, BrowserHome, VolumeMute, VolumeDown, VolumeUp, MediaNextTrack, MediaPrevTrack, MediaStop, MediaPlayPause, LaunchMail, LaunchMediaSelect, LaunchApp1, LaunchApp2, Oem1, Plus, Comma, Minus, Period, Oem2, Oem3, Oem4, Oem5, Oem6, Oem7, Oem8, Oem102, ProcessKey, Attn, CrSel, ExSel, ErEOF, Play, Zoom, NoName, PA1, OEMClear, NoMapping, }

Represents a virtual key code.

Variants

None

Default value.

LButton

Left mouse button.

RButton

Right mouse button.

Cancel

Control-break processing.

MButton

Middle mouse button (three-button mouse).

XButton1

X1 mouse button.

XButton2

X2 mouse button.

Backspace

Backspace key.

Tab

Tab key.

Clear

Clear key.

Return

Enter key.

Shift

Shift key.

Control

Ctrl key.

Menu

Alt key.

Pause

Pause key.

Capital

Caps Lock key.

KanaHangul

Ime Kana/Hangul Mode.

Junja

Ime Junja Mode.

Final

Ime Final Mode.

HanjaKanji

Ime Hanja/Kanji Mode.

Escape

Escape key.

Convert

Ime Convert.

NonConvert

Ime Nonconvert.

Accept

Ime Accept.

ModeChange

Ime Mode Change Request.

Space

Spacebar.

PageUp

Page Up key.

PageDown

Page Down key.

End

End key.

Home

Home key.

Left

Left Arrow key.

Up

Up Arrow key.

Right

Right Arrow key.

Down

Down Arrow key.

Select

Select key.

Print

Print key.

Execute

Execute key.

Snapshot

Print Screen key.

Insert

Ins key.

Delete

Del key.

Help

Help key.

Zero

0 key.

One

1 key.

Two

2 key.

Three

3 key.

Four

4 key.

Five

5 key.

Six

6 key.

Seven

7 key.

Eight

8 key.

Nine

9 key.

A

A key.

B

B key.

C

C key.

D

D key.

E

E key.

F

F key.

G

G key.

H

H key.

I

I key.

J

J key.

K

K key.

L

L key.

M

M key.

N

N key.

O

O key.

P

P key.

Q

Q key.

R

R key.

S

S key.

T

T key.

U

U key.

V

V key.

W

W key.

X

X key.

Y

Y key.

Z

Z key.

LWin

Left Windows Key (natural Keyboard).

RWin

Right Windows Key (natural Keyboard).

Apps

Applications Key (natural Keyboard).

Sleep

Computer Sleep key.

Numpad0

Numeric Keypad 0 key.

Numpad1

Numeric Keypad 1 key.

Numpad2

Numeric Keypad 2 key.

Numpad3

Numeric Keypad 3 key.

Numpad4

Numeric Keypad 4 key.

Numpad5

Numeric Keypad 5 key.

Numpad6

Numeric Keypad 6 key.

Numpad7

Numeric Keypad 7 key.

Numpad8

Numeric Keypad 8 key.

Numpad9

Numeric Keypad 9 key.

Multiply

Multiply key.

Add

Add key.

Separator

Separator key.

Subtract

Subtract key.

Decimal

Decimal key.

Divide

Divide key.

F1

F1 key.

F2

F2 key.

F3

F3 key.

F4

F4 key.

F5

F5 key.

F6

F6 key.

F7

F7 key.

F8

F8 key.

F9

F9 key.

F10

F10 key.

F11

F11 key.

F12

F12 key.

F13

F13 key.

F14

F14 key.

F15

F15 key.

F16

F16 key.

F17

F17 key.

F18

F18 key.

F19

F19 key.

F20

F20 key.

F21

F21 key.

F22

F22 key.

F23

F23 key.

F24

F24 key.

NumLock

Num Lock key.

Scroll

Scroll Lock key.

LShift

Left Shift key.

RShift

Right Shift key.

LControl

Left Control key.

RControl

Right Control key.

LMenu

Left Menu key.

RMenu

Right Menu key.

BrowserBack

Browser Back key.

BrowserForward

Browser Forward key.

BrowserRefresh

Browser Refresh key.

BrowserStop

Browser Stop key.

BrowserSearch

Browser Search key.

BrowserFavorites

Browser Favorites key.

BrowserHome

Browser Start And Home key.

VolumeMute

Volume Mute key.

VolumeDown

Volume Down key.

VolumeUp

Volume Up key.

MediaNextTrack

Next Track key.

MediaPrevTrack

Previous Track key.

MediaStop

Stop Media key.

MediaPlayPause

Play/pause Media key.

LaunchMail

Start Mail key.

LaunchMediaSelect

Select Media key.

LaunchApp1

Start Application 1 key.

LaunchApp2

Start Application 2 key.

Oem1

Used for miscellaneous characters; it can vary by keyboard.

Plus

The '+' key.

Comma

The ',' key.

Minus

The '-' key.

Period

The '.' key.

Oem2

Used for miscellaneous characters; it can vary by keyboard.

Oem3

Used for miscellaneous characters; it can vary by keyboard.

Oem4

For the U.S. standard keyboard, the '[{' key.

Oem5

For the U.S. standard keyboard, the '|' key.

Oem6

For the U.S. standard keyboard, the ']}' key.

Oem7

For the U.S. standard keyboard, the 'single-quote/double-quote' key.

Oem8

Used for miscellaneous characters; it can vary by keyboard.

Oem102

Either the angle bracket key or the backslash key on the RT 102-key keyboard.

ProcessKey

Ime Process key.

Attn

Attn key.

CrSel

Crsel key.

ExSel

Exsel key.

ErEOF

Erase Eof key.

Play

Play key.

Zoom

Zoom key.

NoName

Reserved.

PA1

Pa1 key.

OEMClear

Clear key.

NoMapping

Returned from keys with no mapping.

Methods

impl KeyCode[src]

pub fn get_value(&self) -> u8[src]

Returns the integral value of the KeyCode .

Trait Implementations

impl PartialEq<KeyCode> for KeyCode[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl From<u8> for KeyCode[src]

impl Clone for KeyCode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Into<u8> for KeyCode[src]

impl Copy for KeyCode[src]

impl Display for KeyCode[src]

impl Debug for KeyCode[src]

impl Serialize for KeyCode[src]

impl<'de> Deserialize<'de> for KeyCode[src]

Auto Trait Implementations

impl Send for KeyCode

impl Sync for KeyCode

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]