#[repr(u32)]
pub enum Keycode {
Show 289 variants Unknown, SoftLeft, SoftRight, Home, Back, Call, Endcall, Keycode0, Keycode1, Keycode2, Keycode3, Keycode4, Keycode5, Keycode6, Keycode7, Keycode8, Keycode9, Star, Pound, DpadUp, DpadDown, DpadLeft, DpadRight, DpadCenter, VolumeUp, VolumeDown, Power, Camera, Clear, 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, Comma, Period, AltLeft, AltRight, ShiftLeft, ShiftRight, Tab, Space, Sym, Explorer, Envelope, Enter, Del, Grave, Minus, Equals, LeftBracket, RightBracket, Backslash, Semicolon, Apostrophe, Slash, At, Num, Headsethook, Focus, Plus, Menu, Notification, Search, MediaPlayPause, MediaStop, MediaNext, MediaPrevious, MediaRewind, MediaFastForward, Mute, PageUp, PageDown, Pictsymbols, SwitchCharset, ButtonA, ButtonB, ButtonC, ButtonX, ButtonY, ButtonZ, ButtonL1, ButtonR1, ButtonL2, ButtonR2, ButtonThumbl, ButtonThumbr, ButtonStart, ButtonSelect, ButtonMode, Escape, ForwardDel, CtrlLeft, CtrlRight, CapsLock, ScrollLock, MetaLeft, MetaRight, Function, Sysrq, Break, MoveHome, MoveEnd, Insert, Forward, MediaPlay, MediaPause, MediaClose, MediaEject, MediaRecord, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, NumLock, Numpad0, Numpad1, Numpad2, Numpad3, Numpad4, Numpad5, Numpad6, Numpad7, Numpad8, Numpad9, NumpadDivide, NumpadMultiply, NumpadSubtract, NumpadAdd, NumpadDot, NumpadComma, NumpadEnter, NumpadEquals, NumpadLeftParen, NumpadRightParen, VolumeMute, Info, ChannelUp, ChannelDown, ZoomIn, ZoomOut, Tv, Window, Guide, Dvr, Bookmark, Captions, Settings, TvPower, TvInput, StbPower, StbInput, AvrPower, AvrInput, ProgRed, ProgGreen, ProgYellow, ProgBlue, AppSwitch, Button1, Button2, Button3, Button4, Button5, Button6, Button7, Button8, Button9, Button10, Button11, Button12, Button13, Button14, Button15, Button16, LanguageSwitch, MannerMode, Keycode3dMode, Contacts, Calendar, Music, Calculator, ZenkakuHankaku, Eisu, Muhenkan, Henkan, KatakanaHiragana, Yen, Ro, Kana, Assist, BrightnessDown, BrightnessUp, MediaAudioTrack, Sleep, Wakeup, Pairing, MediaTopMenu, Keycode11, Keycode12, LastChannel, TvDataService, VoiceAssist, TvRadioService, TvTeletext, TvNumberEntry, TvTerrestrialAnalog, TvTerrestrialDigital, TvSatellite, TvSatelliteBs, TvSatelliteCs, TvSatelliteService, TvNetwork, TvAntennaCable, TvInputHdmi1, TvInputHdmi2, TvInputHdmi3, TvInputHdmi4, TvInputComposite1, TvInputComposite2, TvInputComponent1, TvInputComponent2, TvInputVga1, TvAudioDescription, TvAudioDescriptionMixUp, TvAudioDescriptionMixDown, TvZoomMode, TvContentsMenu, TvMediaContextMenu, TvTimerProgramming, Help, NavigatePrevious, NavigateNext, NavigateIn, NavigateOut, StemPrimary, Stem1, Stem2, Stem3, DpadUpLeft, DpadDownLeft, DpadUpRight, DpadDownRight, MediaSkipForward, MediaSkipBackward, MediaStepForward, MediaStepBackward, SoftSleep, Cut, Copy, Paste, SystemNavigationUp, SystemNavigationDown, SystemNavigationLeft, SystemNavigationRight, AllApps, Refresh, ThumbsUp, ThumbsDown, ProfileSwitch,
}
Expand description

Key codes.

See the NDK docs

Variants

Unknown

SoftLeft

SoftRight

Home

Back

Call

Endcall

Keycode0

Keycode1

Keycode2

Keycode3

Keycode4

Keycode5

Keycode6

Keycode7

Keycode8

Keycode9

Star

Pound

DpadUp

DpadDown

DpadLeft

DpadRight

DpadCenter

VolumeUp

VolumeDown

Power

Camera

Clear

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

Comma

Period

AltLeft

AltRight

ShiftLeft

ShiftRight

Tab

Space

Sym

Explorer

Envelope

Enter

Del

Grave

Minus

Equals

LeftBracket

RightBracket

Backslash

Semicolon

Apostrophe

Slash

At

Num

Headsethook

Focus

Plus

Menu

Notification

Search

MediaPlayPause

MediaStop

MediaNext

MediaPrevious

MediaRewind

MediaFastForward

Mute

PageUp

PageDown

Pictsymbols

SwitchCharset

ButtonA

ButtonB

ButtonC

ButtonX

ButtonY

ButtonZ

ButtonL1

ButtonR1

ButtonL2

ButtonR2

ButtonThumbl

ButtonThumbr

ButtonStart

ButtonSelect

ButtonMode

Escape

ForwardDel

CtrlLeft

CtrlRight

CapsLock

ScrollLock

MetaLeft

MetaRight

Function

Sysrq

Break

MoveHome

MoveEnd

Insert

Forward

MediaPlay

MediaPause

MediaClose

MediaEject

MediaRecord

F1

F2

F3

F4

F5

F6

F7

F8

F9

F10

F11

F12

NumLock

Numpad0

Numpad1

Numpad2

Numpad3

Numpad4

Numpad5

Numpad6

Numpad7

Numpad8

Numpad9

NumpadDivide

NumpadMultiply

NumpadSubtract

NumpadAdd

NumpadDot

NumpadComma

NumpadEnter

NumpadEquals

NumpadLeftParen

NumpadRightParen

VolumeMute

Info

ChannelUp

ChannelDown

ZoomIn

ZoomOut

Tv

Window

Guide

Dvr

Bookmark

Captions

Settings

TvPower

TvInput

StbPower

StbInput

AvrPower

AvrInput

ProgRed

ProgGreen

ProgYellow

ProgBlue

AppSwitch

Button1

Button2

Button3

Button4

Button5

Button6

Button7

Button8

Button9

Button10

Button11

Button12

Button13

Button14

Button15

Button16

LanguageSwitch

MannerMode

Keycode3dMode

Contacts

Calendar

Music

Calculator

ZenkakuHankaku

Eisu

Muhenkan

Henkan

KatakanaHiragana

Yen

Ro

Kana

Assist

BrightnessDown

BrightnessUp

MediaAudioTrack

Sleep

Wakeup

Pairing

MediaTopMenu

Keycode11

Keycode12

LastChannel

TvDataService

VoiceAssist

TvRadioService

TvTeletext

TvNumberEntry

TvTerrestrialAnalog

TvTerrestrialDigital

TvSatellite

TvSatelliteBs

TvSatelliteCs

TvSatelliteService

TvNetwork

TvAntennaCable

TvInputHdmi1

TvInputHdmi2

TvInputHdmi3

TvInputHdmi4

TvInputComposite1

TvInputComposite2

TvInputComponent1

TvInputComponent2

TvInputVga1

TvAudioDescription

TvAudioDescriptionMixUp

TvAudioDescriptionMixDown

TvZoomMode

TvContentsMenu

TvMediaContextMenu

TvTimerProgramming

Help

NavigatePrevious

NavigateNext

NavigateIn

NavigateOut

StemPrimary

Stem1

Stem2

Stem3

DpadUpLeft

DpadDownLeft

DpadUpRight

DpadDownRight

MediaSkipForward

MediaSkipBackward

MediaStepForward

MediaStepBackward

SoftSleep

Cut

Copy

Paste

SystemNavigationUp

SystemNavigationDown

SystemNavigationLeft

SystemNavigationRight

AllApps

Refresh

ThumbsUp

ThumbsDown

ProfileSwitch

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.