Enum input_linux::Key [] [src]

#[repr(u16)]
pub enum Key { KeyReserved, KeyEsc, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key0, KeyMinus, KeyEqual, KeyBackspace, KeyTab, KeyQ, KeyW, KeyE, KeyR, KeyT, KeyY, KeyU, KeyI, KeyO, KeyP, KeyLeftBrace, KeyRightBrace, KeyEnter, KeyLeftCtrl, KeyA, KeyS, KeyD, KeyF, KeyG, KeyH, KeyJ, KeyK, KeyL, KeySemicolon, KeyApostrophe, KeyGrave, KeyLeftShift, KeyBackslash, KeyZ, KeyX, KeyC, KeyV, KeyB, KeyN, KeyM, KeyComma, KeyDot, KeySlash, KeyRightShift, KeyKpAsterisk, KeyLeftAlt, KeySpace, KeyCapsLock, KeyF1, KeyF2, KeyF3, KeyF4, KeyF5, KeyF6, KeyF7, KeyF8, KeyF9, KeyF10, KeyNumLock, KeyScrollLock, KeyKp7, KeyKp8, KeyKp9, KeyKpMinus, KeyKp4, KeyKp5, KeyKp6, KeyKpPlus, KeyKp1, KeyKp2, KeyKp3, KeyKp0, KeyKpDot, Unknown54, KeyZenkakuHankaku, Key102nd, KeyF11, KeyF12, KeyRo, KeyKatakana, KeyHiragana, KeyHenkan, KeyKatakanaHiragana, KeyMuhenkan, KeyKpJpComma, KeyKpEnter, KeyRightCtrl, KeyKpSlash, KeySysrq, KeyRightAlt, KeyLineFeed, KeyHome, KeyUp, KeyPageUp, KeyLeft, KeyRight, KeyEnd, KeyDown, KeyPageDown, KeyInsert, KeyDelete, KeyMacro, KeyMute, KeyVolumeDown, KeyVolumeUp, KeyPower, KeyKpEqual, KeyKpPlusMinus, KeyPause, KeyScale, KeyKpComma, KeyHangul, KeyHanja, KeyYen, KeyLeftMeta, KeyRightMeta, KeyCompose, KeyStop, KeyAgain, KeyProps, KeyUndo, KeyFront, KeyCopy, KeyOpen, KeyPaste, KeyFind, KeyCut, KeyHelp, KeyMenu, KeyCalc, KeySetup, KeySleep, KeyWakeup, KeyFile, KeySendFile, KeyDeleteFile, KeyXfer, KeyProg1, KeyProg2, KeyWWW, KeyMSDOS, KeyCoffee, KeyRotateDisplay, KeyCycleWindows, KeyMail, KeyBookmarks, KeyComputer, KeyBack, KeyForward, KeyCloseCD, KeyEjectCD, KeyEjectCloseCD, KeyNextSong, KeyPlayPause, KeyPreviousSong, KeyStopCD, KeyRecord, KeyRewind, KeyPhone, KeyIso, KeyConfig, KeyHomepage, KeyRefresh, KeyExit, KeyMove, KeyEdit, KeyScrollUp, KeyScrollDown, KeyKpLeftParen, KeyKpRightParen, KeyNew, KeyRedo, KeyF13, KeyF14, KeyF15, KeyF16, KeyF17, KeyF18, KeyF19, KeyF20, KeyF21, KeyF22, KeyF23, KeyF24, UnknownC3, UnknownC4, UnknownC5, UnknownC6, UnknownC7, KeyPlayCD, KeyPauseCD, KeyProg3, KeyProg4, KeyDashboard, KeySuspend, KeyClose, KeyPlay, KeyFastForward, KeyBassBoost, KeyPrint, KeyHp, KeyCamera, KeySound, KeyQuestion, KeyEmail, KeyChat, KeySearch, KeyConnect, KeyFinance, KeySport, KeyShop, KeyAlterase, KeyCancel, KeyBrightnessDown, KeyBrightnessUp, KeyMedia, KeySwitchVideoMode, KeyIllumToggle, KeyIllumDown, KeyIllumUp, KeySend, KeyReply, KeyForwardMail, KeySave, KeyDocuments, KeyBattery, KeyBluetooth, KeyWLAN, KeyUWB, KeyUnknown, KeyVideoNext, KeyVideoPrev, KeyBrightnessCycle, KeyBrightnessAuto, KeyDisplayOff, KeyWWAN, KeyRfkill, KeyMicMute, UnknownF9, UnknownFA, UnknownFB, UnknownFC, UnknownFD, UnknownFE, ReservedFF, Button0, Button1, Button2, Button3, Button4, Button5, Button6, Button7, Button8, Button9, Unknown10A, Unknown10B, Unknown10C, Unknown10D, Unknown10E, Unknown10F, ButtonLeft, ButtonRight, ButtonMiddle, ButtonSide, ButtonExtra, ButtonForward, ButtonBack, ButtonTask, Unknown118, Unknown119, Unknown11A, Unknown11B, Unknown11C, Unknown11D, Unknown11E, Unknown11F, ButtonTrigger, ButtonThumb, ButtonThumb2, ButtonTop, ButtonTop2, ButtonPinkie, ButtonBase, ButtonBase2, ButtonBase3, ButtonBase4, ButtonBase5, ButtonBase6, Unknown12C, Unknown12D, Unknown12E, ButtonDead, ButtonSouth, ButtonEast, ButtonC, ButtonNorth, ButtonWest, ButtonZ, ButtonTL, ButtonTR, ButtonTL2, ButtonTR2, ButtonSelect, ButtonStart, ButtonMode, ButtonThumbl, ButtonThumbr, Unknown13F, ButtonToolPen, ButtonToolRubber, ButtonToolBrush, ButtonToolPencil, ButtonToolAirbrush, ButtonToolFinger, ButtonToolMouse, ButtonToolLens, ButtonToolQuintTap, Unknown149, ButtonTouch, ButtonStylus, ButtonStylus2, ButtonToolDoubleTap, ButtonToolTripleTap, ButtonToolQuadtap, ButtonWheel, ButtonGearUp, Unknown152, Unknown153, Unknown154, Unknown155, Unknown156, Unknown157, Unknown158, Unknown159, Unknown15A, Unknown15B, Unknown15C, Unknown15D, Unknown15E, Unknown15F, KeyOk, KeySelect, KeyGoto, KeyClear, KeyPower2, KeyOption, KeyInfo, KeyTime, KeyVendor, KeyArchive, KeyProgram, KeyChannel, KeyFavorites, KeyEPG, KeyPVR, KeyMHP, KeyLanguage, KeyTitle, KeySubtitle, KeyAngle, KeyZoom, KeyMode, KeyKeyboard, KeyScreen, KeyPC, KeyTV, KeyTV2, KeyVCR, KeyVCR2, KeySat, KeySat2, KeyCD, KeyTape, KeyRadio, KeyTuner, KeyPlayer, KeyText, KeyDvd, KeyAux, KeyMp3, KeyAudio, KeyVideo, KeyDirectory, KeyList, KeyMemo, KeyCalendar, KeyRed, KeyGreen, KeyYellow, KeyBlue, KeyChannelUp, KeyChannelDown, KeyFirst, KeyLast, KeyAb, KeyNext, KeyRestart, KeySlow, KeyShuffle, KeyBreak, KeyPrevious, KeyDigits, KeyTeen, KeyTwen, KeyVideophone, KeyGames, KeyZoomIn, KeyZoomOut, KeyZoomReset, KeyWordProcessor, KeyEditor, KeySpreadsheet, KeyGraphicsEditor, KeyPresentation, KeyDatabase, KeyNews, KeyVoicemail, KeyAddressBook, KeyMessenger, KeyDisplayToggle, KeySpellCheck, KeyLogoff, KeyDollar, KeyEuro, KeyFrameBack, KeyFrameForward, KeyContextMenu, KeyMediaRepeat, Key10ChannelsUp, Key10ChannelsDown, KeyImages, Unknown1BB, Unknown1BC, Unknown1BD, Unknown1BE, Unknown1BF, KeyDelEol, KeyDelEos, KeyInsLine, KeyDelLine, Unknown1C4, Unknown1C5, Unknown1C6, Unknown1C7, Unknown1C8, Unknown1C9, Unknown1CA, Unknown1CB, Unknown1CC, Unknown1CD, Unknown1CE, Unknown1CF, KeyFn, KeyFnEsc, KeyFnF1, KeyFnF2, KeyFnF3, KeyFnF4, KeyFnF5, KeyFnF6, KeyFnF7, KeyFnF8, KeyFnF9, KeyFnF10, KeyFnF11, KeyFnF12, KeyFn1, KeyFn2, KeyFnD, KeyFnE, KeyFnF, KeyFnS, KeyFnB, Unknown1E5, Unknown1E6, Unknown1E7, Unknown1E8, Unknown1E9, Unknown1EA, Unknown1EB, Unknown1EC, Unknown1ED, Unknown1EE, Unknown1EF, Unknown1F0, KeyBrlDot1, KeyBrlDot2, KeyBrlDot3, KeyBrlDot4, KeyBrlDot5, KeyBrlDot6, KeyBrlDot7, KeyBrlDot8, KeyBrlDot9, KeyBrlDot10, Unknown1FB, Unknown1FC, Unknown1FD, Unknown1FE, Unknown1FF, KeyNumeric0, KeyNumeric1, KeyNumeric2, KeyNumeric3, KeyNumeric4, KeyNumeric5, KeyNumeric6, KeyNumeric7, KeyNumeric8, KeyNumeric9, KeyNumericStar, KeyNumericPound, KeyNumericA, KeyNumericB, KeyNumericC, KeyNumericD, KeyCameraFocus, KeyWpsButton, KeyTouchpadToggle, KeyTouchpadOn, KeyTouchpadOff, KeyCameraZoomin, KeyCameraZoomout, KeyCameraUp, KeyCameraDown, KeyCameraLeft, KeyCameraRight, KeyAttendantOn, KeyAttendantOff, KeyAttendantToggle, KeyLightsToggle, Unknown21F, ButtonDpadUp, ButtonDpadDown, ButtonDpadLeft, ButtonDpadRight, Unknown224, Unknown225, Unknown226, Unknown227, Unknown228, Unknown229, Unknown22A, Unknown22B, Unknown22C, Unknown22D, Unknown22E, Unknown22F, KeyAlsToggle, Unknown231, Unknown232, Unknown233, Unknown234, Unknown235, Unknown236, Unknown237, Unknown238, Unknown239, Unknown23A, Unknown23B, Unknown23C, Unknown23D, Unknown23E, Unknown23F, KeyButtonConfig, KeyTaskManager, KeyJournal, KeyControlPanel, KeyAppSelect, KeyScreensaver, KeyVoicecommand, Unknown247, Unknown248, Unknown249, Unknown24A, Unknown24B, Unknown24C, Unknown24D, Unknown24E, Unknown24F, KeyBrightnessMin, KeyBrightnessMax, Unknown252, Unknown253, Unknown254, Unknown255, Unknown256, Unknown257, Unknown258, Unknown259, Unknown25A, Unknown25B, Unknown25C, Unknown25D, Unknown25E, Unknown25F, KeyInputAssistPrev, KeyInputAssistNext, KeyInputAssistPrevGroup, KeyInputAssistNextGroup, KeyInputAssistAccept, KeyInputAssistCancel, KeyRightUp, KeyRightDown, KeyLeftUp, KeyLeftDown, KeyRootMenu, KeyMediaTopMenu, KeyNumeric11, KeyNumeric12, KeyAudioDesc, Key3dMode, KeyNextFavorite, KeyStopRecord, KeyPauseRecord, KeyVod, KeyUnmute, KeyFastReverse, KeySlowReverse, KeyData, KeyOnscreenKeyboard, Unknown279, Unknown27A, Unknown27B, Unknown27C, Unknown27D, Unknown27E, Unknown27F, Unknown280, Unknown281, Unknown282, Unknown283, Unknown284, Unknown285, Unknown286, Unknown287, Unknown288, Unknown289, Unknown28A, Unknown28B, Unknown28C, Unknown28D, Unknown28E, Unknown28F, Unknown290, Unknown291, Unknown292, Unknown293, Unknown294, Unknown295, Unknown296, Unknown297, Unknown298, Unknown299, Unknown29A, Unknown29B, Unknown29C, Unknown29D, Unknown29E, Unknown29F, Unknown2A0, Unknown2A1, Unknown2A2, Unknown2A3, Unknown2A4, Unknown2A5, Unknown2A6, Unknown2A7, Unknown2A8, Unknown2A9, Unknown2AA, Unknown2AB, Unknown2AC, Unknown2AD, Unknown2AE, Unknown2AF, Unknown2B0, Unknown2B1, Unknown2B2, Unknown2B3, Unknown2B4, Unknown2B5, Unknown2B6, Unknown2B7, Unknown2B8, Unknown2B9, Unknown2BA, Unknown2BB, Unknown2BC, Unknown2BD, Unknown2BE, Unknown2BF, ButtonTriggerHappy1, ButtonTriggerHappy2, ButtonTriggerHappy3, ButtonTriggerHappy4, ButtonTriggerHappy5, ButtonTriggerHappy6, ButtonTriggerHappy7, ButtonTriggerHappy8, ButtonTriggerHappy9, ButtonTriggerHappy10, ButtonTriggerHappy11, ButtonTriggerHappy12, ButtonTriggerHappy13, ButtonTriggerHappy14, ButtonTriggerHappy15, ButtonTriggerHappy16, ButtonTriggerHappy17, ButtonTriggerHappy18, ButtonTriggerHappy19, ButtonTriggerHappy20, ButtonTriggerHappy21, ButtonTriggerHappy22, ButtonTriggerHappy23, ButtonTriggerHappy24, ButtonTriggerHappy25, ButtonTriggerHappy26, ButtonTriggerHappy27, ButtonTriggerHappy28, ButtonTriggerHappy29, ButtonTriggerHappy30, ButtonTriggerHappy31, ButtonTriggerHappy32, ButtonTriggerHappy33, ButtonTriggerHappy34, ButtonTriggerHappy35, ButtonTriggerHappy36, ButtonTriggerHappy37, ButtonTriggerHappy38, ButtonTriggerHappy39, ButtonTriggerHappy40, Unknown2E8, Unknown2E9, Unknown2EA, Unknown2EB, Unknown2EC, Unknown2ED, Unknown2EE, Unknown2EF, Unknown2F0, Unknown2F1, Unknown2F2, Unknown2F3, Unknown2F4, Unknown2F5, Unknown2F6, Unknown2F7, Unknown2F8, Unknown2F9, Unknown2FA, Unknown2FB, Unknown2FC, Unknown2FD, Unknown2FE, Unknown2FF, }

Keys and Buttons

Most of the keys/buttons are modeled after USB HUT 1.12 (see http://www.usb.org/developers/hidpage).

Comment Abbreviations

AC - Application Control AL - Application Launch Button SC - System Control

Variants

SC System Power Down

AL Compiz Scale (Expose)

KeyHangeul / KeyHanguel

AC Stop

AC Properties

AC Undo

AC Copy

AC Open

AC Paste

AC Search

AC Cut

AL Integrated Help Center

Menu (show menu)

AL Calculator

SC System Sleep

System Wake Up

AL Local Machine Browser

AL Internet Browser

AL Terminal Lock/Screensaver KeyScreenLock

Display orientation for e.g. tablets (aka KeyDirectionKey)

AC Bookmarks

AC Back

AC Forward

Media Select Telephone

AL Consumer Control Configuration

AC Home

AC Refresh

AC Exit

AC New

AC Redo/Repeat

AL Dashboard

AC Close

AC Print

AL Checkbook/Finance

AC Cancel

Cycle between available video outputs (Monitor/LCD/TV-out/etc)

AC Send

AC Reply

AC Forward Msg

AC Save

drive next video source

drive previous video source

brightness up, after max is min

Set Auto Brightness: manual brightness control is off, rely on ambient (aka KeyBrightnessZero)

display device to off state

Wireless WAN (LTE, UMTS, GSM, etc.) (aka KeyWiMAX)

Key that controls all radios

Mute / unmute the microphone

Code 255 is reserved for special needs of AT keyboard driver

aka ButtonA

aka ButtonB

aka ButtonX

aka ButtonY

Five fingers on trackpad

Four fingers on trackpad

AL OEM Features/Tips/Tutorial

Media Select Program Guide

Media Select Home

Media Select Computer

Media Select TV

Media Select Cable

Media Select VCR

VCR Plus

Media Select Satellite

Media Select CD

Media Select Tape

Media Select Tuner

Media Select DVD

AL Audio Browser

AL Movie Browser

Media Select Messages

Channel Increment

Channel Decrement

Recall Last

Media Select Video Phone

Media Select Games

AC Zoom In

AC Zoom Out

AC Zoom

AL Word Processor

AL Text Editor

AL Spreadsheet

AL Graphics Editor

AL Presentation App

AL Database App

AL Newsreader

AL Voicemail

AL Contacts/Address Book

AL Instant Messaging

Turn display (LCD) on and off (aka KeyBrightnessToggle)

AL Spell Check

AL Logoff

Consumer - transport controls

GenDesc - system context menu

Consumer - transport control

10 channels up (10+)

10 channels down (10-)

AL Image Browser

used by phones, remote controls,

and other keypads

Phone key A - HUT Telephony 0xb9

WiFi Protected Setup key

Request switch touchpad on or off

Attendant call on or off

Reading light on or off

Ambient light sensor

AL Button Configuration

AL Task/Project Manager

AL Log/Journal/Timecard

AL Control Panel

AL Select Task/Application

AL Screen Saver

Listening Voice Command

Set Brightness to Minimum

Set Brightness to Maximum

Diagonal movement keys

Show Device's Root Menu

Show Top Menu of the Media (e.g. DVD)

Toggle Audio Description: refers to an audio service that helps blind and visually impaired consumers understand the action in a program. Note: in some countries this is referred to as "Video Description".

Video on Demand

Control a data application associated with the currently viewed channel, e.g. teletext or data broadcast application (MHEG, MHP, HbbTV, etc.)

Methods

impl Key
[src]

COUNT: usize = sys::KEY_CNT as usize

Important traits for EnumIterator<T>
[src]

[src]

impl Key
[src]

[src]

impl Key
[src]

[src]

[src]

Trait Implementations

impl Copy for Key
[src]

impl Clone for Key
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialOrd for Key
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Key
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq for Key
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Key
[src]

impl Hash for Key
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Key
[src]

[src]

Formats the value using the given formatter. Read more

impl BitmaskTrait for Key
[src]

[src]

[src]

[src]

[src]

[src]

impl IterableEnum for Key
[src]

[src]

Important traits for EnumIterator<T>
[src]

impl From<Key> for u16
[src]

[src]

Performs the conversion.