Enum android_activity::input::Keycode
source · #[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
StemPrimary
Stem1
Stem2
Stem3
DpadUpLeft
DpadDownLeft
DpadUpRight
DpadDownRight
MediaSkipForward
MediaSkipBackward
MediaStepForward
MediaStepBackward
SoftSleep
Cut
Copy
Paste
AllApps
Refresh
ThumbsUp
ThumbsDown
ProfileSwitch
Trait Implementations§
source§impl PartialEq<Keycode> for Keycode
impl PartialEq<Keycode> for Keycode
source§impl TryFromPrimitive for Keycode
impl TryFromPrimitive for Keycode
impl Copy for Keycode
impl Eq for Keycode
impl StructuralEq for Keycode
impl StructuralPartialEq for Keycode
Auto Trait Implementations§
impl RefUnwindSafe for Keycode
impl Send for Keycode
impl Sync for Keycode
impl Unpin for Keycode
impl UnwindSafe for Keycode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more