[−][src]Enum input_linux::Key
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.)
Implementations
impl Key
[src]
pub const COUNT: usize
[src]
The maximum valid value.
pub fn iter() -> EnumIterator<Self>ⓘImportant traits for EnumIterator<T>
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
[src]
Important traits for EnumIterator<T>
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
An iterator over all values of the enum.
pub fn bitmask() -> Bitmask<Self>
[src]
A bitmask that can contain all values of the enum.
impl Key
[src]
pub fn from_code(code: u16) -> Result<Self, RangeError>
[src]
Instantiates the enum from a raw code value.
impl Key
[src]
pub const fn is_button(&self) -> bool
[src]
Determines whether the given value represents a button.
Buttons are often found on a mouse or gamepad.
pub const fn is_key(&self) -> bool
[src]
Determines whether the given value represents a keyboard key.
Trait Implementations
impl BitmaskTrait for Key
[src]
type Array = [u8; 96]
The underlying array storage data type.
type Index = Key
The type that the bitmask can be indexed by.
const ZERO: Self::Array
[src]
fn array_default() -> Self::Array
[src]
fn array_slice(array: &Self::Array) -> &[u8]
[src]
fn array_slice_mut(array: &mut Self::Array) -> &mut [u8]
[src]
fn index(index: Self::Index) -> usize
[src]
fn index_valid(_array: &Self::Array, _index: Self::Index) -> bool
[src]
impl Clone for Key
[src]
impl Copy for Key
[src]
impl Debug for Key
[src]
impl Eq for Key
[src]
impl From<Key> for u16
[src]
impl Hash for Key
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IterableEnum for Key
[src]
fn iter_next(v: usize) -> Option<(usize, Self)>
[src]
fn iter() -> EnumIterator<Self>ⓘImportant traits for EnumIterator<T>
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
[src]
Important traits for EnumIterator<T>
impl<T: IterableEnum> Iterator for EnumIterator<T> type Item = T;
impl Ord for Key
[src]
fn cmp(&self, other: &Key) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Key> for Key
[src]
impl PartialOrd<Key> for Key
[src]
fn partial_cmp(&self, other: &Key) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Key
[src]
impl StructuralPartialEq for Key
[src]
impl TryFrom<u16> for Key
[src]
Auto Trait Implementations
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,