Skip to main content

PhysicalKeyboardKey

Struct PhysicalKeyboardKey 

Source
pub struct PhysicalKeyboardKey {
    pub usb_hid_usage: u64,
}
Expand description

A type with constants that describe the keys that are returned from RawKeyEvent.physicalKey.

PhysicalKeyboardKeys are used to describe and test for keys in a particular location on a keyboard. The keys are described by the USB HID usage code that the key would produce, ignoring the key map, modifier keys (like SHIFT), and the label on the key.

This is contrast to LogicalKeyboardKey, which represents a logical key interpreted in the context of modifiers, modes, and/or keyboard layouts.

For instance, if you wanted a game where the key next to the CAPS LOCK (the “A” key on a QWERTY keyboard) moved the player to the left, you’d want to look at the physical key to make sure that regardless of the character the key produces, you got the key that is in that location on the keyboard.

Fields§

§usb_hid_usage: u64

The unique USB HID usage ID of this physical key on the keyboard.

Due to the variations in platform APIs, this may not be the actual HID usage code from the hardware, but a value derived from available information on the platform.

See https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf for the HID usage values and their meanings.

Implementations§

Source§

impl PhysicalKeyboardKey

Source

pub const HYPER: PhysicalKeyboardKey

Represents the location of the “Hyper” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SUPER_KEY: PhysicalKeyboardKey

Represents the location of the “Super Key” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const FN: PhysicalKeyboardKey

Represents the location of the “Fn” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const FN_LOCK: PhysicalKeyboardKey

Represents the location of the “Fn Lock” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SUSPEND: PhysicalKeyboardKey

Represents the location of the “Suspend” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const RESUME: PhysicalKeyboardKey

Represents the location of the “Resume” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const TURBO: PhysicalKeyboardKey

Represents the location of the “Turbo” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const PRIVACY_SCREEN_TOGGLE: PhysicalKeyboardKey

Represents the location of the “Privacy Screen Toggle” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MICROPHONE_MUTE_TOGGLE: PhysicalKeyboardKey

Represents the location of the “Microphone Mute Toggle” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SLEEP: PhysicalKeyboardKey

Represents the location of the “Sleep” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const WAKE_UP: PhysicalKeyboardKey

Represents the location of the “Wake Up” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DISPLAY_TOGGLE_INT_EXT: PhysicalKeyboardKey

Represents the location of the “Display Toggle Int Ext” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON1: PhysicalKeyboardKey

Represents the location of the “Game Button 1” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON2: PhysicalKeyboardKey

Represents the location of the “Game Button 2” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON3: PhysicalKeyboardKey

Represents the location of the “Game Button 3” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON4: PhysicalKeyboardKey

Represents the location of the “Game Button 4” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON5: PhysicalKeyboardKey

Represents the location of the “Game Button 5” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON6: PhysicalKeyboardKey

Represents the location of the “Game Button 6” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON7: PhysicalKeyboardKey

Represents the location of the “Game Button 7” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON8: PhysicalKeyboardKey

Represents the location of the “Game Button 8” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON9: PhysicalKeyboardKey

Represents the location of the “Game Button 9” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON10: PhysicalKeyboardKey

Represents the location of the “Game Button 10” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON11: PhysicalKeyboardKey

Represents the location of the “Game Button 11” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON12: PhysicalKeyboardKey

Represents the location of the “Game Button 12” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON13: PhysicalKeyboardKey

Represents the location of the “Game Button 13” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON14: PhysicalKeyboardKey

Represents the location of the “Game Button 14” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON15: PhysicalKeyboardKey

Represents the location of the “Game Button 15” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON16: PhysicalKeyboardKey

Represents the location of the “Game Button 16” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_A: PhysicalKeyboardKey

Represents the location of the “Game Button A” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_B: PhysicalKeyboardKey

Represents the location of the “Game Button B” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_C: PhysicalKeyboardKey

Represents the location of the “Game Button C” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_LEFT1: PhysicalKeyboardKey

Represents the location of the “Game Button Left 1” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_LEFT2: PhysicalKeyboardKey

Represents the location of the “Game Button Left 2” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_MODE: PhysicalKeyboardKey

Represents the location of the “Game Button Mode” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_RIGHT1: PhysicalKeyboardKey

Represents the location of the “Game Button Right 1” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_RIGHT2: PhysicalKeyboardKey

Represents the location of the “Game Button Right 2” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_SELECT: PhysicalKeyboardKey

Represents the location of the “Game Button Select” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_START: PhysicalKeyboardKey

Represents the location of the “Game Button Start” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_THUMB_LEFT: PhysicalKeyboardKey

Represents the location of the “Game Button Thumb Left” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_THUMB_RIGHT: PhysicalKeyboardKey

Represents the location of the “Game Button Thumb Right” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_X: PhysicalKeyboardKey

Represents the location of the “Game Button X” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_Y: PhysicalKeyboardKey

Represents the location of the “Game Button Y” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const GAME_BUTTON_Z: PhysicalKeyboardKey

Represents the location of the “Game Button Z” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const USB_RESERVED: PhysicalKeyboardKey

Represents the location of the “Usb Reserved” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const USB_ERROR_ROLL_OVER: PhysicalKeyboardKey

Represents the location of the “Usb Error Roll Over” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const USB_POST_FAIL: PhysicalKeyboardKey

Represents the location of the “Usb Post Fail” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const USB_ERROR_UNDEFINED: PhysicalKeyboardKey

Represents the location of the “Usb Error Undefined” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_A: PhysicalKeyboardKey

Represents the location of the “Key A” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_B: PhysicalKeyboardKey

Represents the location of the “Key B” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_C: PhysicalKeyboardKey

Represents the location of the “Key C” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_D: PhysicalKeyboardKey

Represents the location of the “Key D” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_E: PhysicalKeyboardKey

Represents the location of the “Key E” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_F: PhysicalKeyboardKey

Represents the location of the “Key F” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_G: PhysicalKeyboardKey

Represents the location of the “Key G” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_H: PhysicalKeyboardKey

Represents the location of the “Key H” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_I: PhysicalKeyboardKey

Represents the location of the “Key I” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_J: PhysicalKeyboardKey

Represents the location of the “Key J” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_K: PhysicalKeyboardKey

Represents the location of the “Key K” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_L: PhysicalKeyboardKey

Represents the location of the “Key L” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_M: PhysicalKeyboardKey

Represents the location of the “Key M” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_N: PhysicalKeyboardKey

Represents the location of the “Key N” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_O: PhysicalKeyboardKey

Represents the location of the “Key O” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_P: PhysicalKeyboardKey

Represents the location of the “Key P” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_Q: PhysicalKeyboardKey

Represents the location of the “Key Q” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_R: PhysicalKeyboardKey

Represents the location of the “Key R” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_S: PhysicalKeyboardKey

Represents the location of the “Key S” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_T: PhysicalKeyboardKey

Represents the location of the “Key T” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_U: PhysicalKeyboardKey

Represents the location of the “Key U” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_V: PhysicalKeyboardKey

Represents the location of the “Key V” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_W: PhysicalKeyboardKey

Represents the location of the “Key W” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_X: PhysicalKeyboardKey

Represents the location of the “Key X” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_Y: PhysicalKeyboardKey

Represents the location of the “Key Y” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEY_Z: PhysicalKeyboardKey

Represents the location of the “Key Z” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DIGIT1: PhysicalKeyboardKey

Represents the location of the “Digit 1” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DIGIT2: PhysicalKeyboardKey

Represents the location of the “Digit 2” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DIGIT3: PhysicalKeyboardKey

Represents the location of the “Digit 3” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DIGIT4: PhysicalKeyboardKey

Represents the location of the “Digit 4” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DIGIT5: PhysicalKeyboardKey

Represents the location of the “Digit 5” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DIGIT6: PhysicalKeyboardKey

Represents the location of the “Digit 6” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DIGIT7: PhysicalKeyboardKey

Represents the location of the “Digit 7” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DIGIT8: PhysicalKeyboardKey

Represents the location of the “Digit 8” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DIGIT9: PhysicalKeyboardKey

Represents the location of the “Digit 9” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DIGIT0: PhysicalKeyboardKey

Represents the location of the “Digit 0” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ENTER: PhysicalKeyboardKey

Represents the location of the “Enter” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ESCAPE: PhysicalKeyboardKey

Represents the location of the “Escape” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BACKSPACE: PhysicalKeyboardKey

Represents the location of the “Backspace” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const TAB: PhysicalKeyboardKey

Represents the location of the “Tab” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SPACE: PhysicalKeyboardKey

Represents the location of the “Space” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MINUS: PhysicalKeyboardKey

Represents the location of the “Minus” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const EQUAL: PhysicalKeyboardKey

Represents the location of the “Equal” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BRACKET_LEFT: PhysicalKeyboardKey

Represents the location of the “Bracket Left” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BRACKET_RIGHT: PhysicalKeyboardKey

Represents the location of the “Bracket Right” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BACKSLASH: PhysicalKeyboardKey

Represents the location of the “Backslash” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SEMICOLON: PhysicalKeyboardKey

Represents the location of the “Semicolon” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const QUOTE: PhysicalKeyboardKey

Represents the location of the “Quote” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BACKQUOTE: PhysicalKeyboardKey

Represents the location of the “Backquote” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const COMMA: PhysicalKeyboardKey

Represents the location of the “Comma” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const PERIOD: PhysicalKeyboardKey

Represents the location of the “Period” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SLASH: PhysicalKeyboardKey

Represents the location of the “Slash” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const CAPS_LOCK: PhysicalKeyboardKey

Represents the location of the “Caps Lock” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F1: PhysicalKeyboardKey

Represents the location of the “F1” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F2: PhysicalKeyboardKey

Represents the location of the “F2” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F3: PhysicalKeyboardKey

Represents the location of the “F3” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F4: PhysicalKeyboardKey

Represents the location of the “F4” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F5: PhysicalKeyboardKey

Represents the location of the “F5” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F6: PhysicalKeyboardKey

Represents the location of the “F6” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F7: PhysicalKeyboardKey

Represents the location of the “F7” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F8: PhysicalKeyboardKey

Represents the location of the “F8” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F9: PhysicalKeyboardKey

Represents the location of the “F9” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F10: PhysicalKeyboardKey

Represents the location of the “F10” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F11: PhysicalKeyboardKey

Represents the location of the “F11” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F12: PhysicalKeyboardKey

Represents the location of the “F12” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const PRINT_SCREEN: PhysicalKeyboardKey

Represents the location of the “Print Screen” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SCROLL_LOCK: PhysicalKeyboardKey

Represents the location of the “Scroll Lock” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const PAUSE: PhysicalKeyboardKey

Represents the location of the “Pause” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const INSERT: PhysicalKeyboardKey

Represents the location of the “Insert” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const HOME: PhysicalKeyboardKey

Represents the location of the “Home” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const PAGE_UP: PhysicalKeyboardKey

Represents the location of the “Page Up” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const DELETE: PhysicalKeyboardKey

Represents the location of the “Delete” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const END: PhysicalKeyboardKey

Represents the location of the “End” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const PAGE_DOWN: PhysicalKeyboardKey

Represents the location of the “Page Down” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ARROW_RIGHT: PhysicalKeyboardKey

Represents the location of the “Arrow Right” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ARROW_LEFT: PhysicalKeyboardKey

Represents the location of the “Arrow Left” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ARROW_DOWN: PhysicalKeyboardKey

Represents the location of the “Arrow Down” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ARROW_UP: PhysicalKeyboardKey

Represents the location of the “Arrow Up” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUM_LOCK: PhysicalKeyboardKey

Represents the location of the “Num Lock” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_DIVIDE: PhysicalKeyboardKey

Represents the location of the “Numpad Divide” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_MULTIPLY: PhysicalKeyboardKey

Represents the location of the “Numpad Multiply” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_SUBTRACT: PhysicalKeyboardKey

Represents the location of the “Numpad Subtract” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_ADD: PhysicalKeyboardKey

Represents the location of the “Numpad Add” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_ENTER: PhysicalKeyboardKey

Represents the location of the “Numpad Enter” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD1: PhysicalKeyboardKey

Represents the location of the “Numpad 1” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD2: PhysicalKeyboardKey

Represents the location of the “Numpad 2” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD3: PhysicalKeyboardKey

Represents the location of the “Numpad 3” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD4: PhysicalKeyboardKey

Represents the location of the “Numpad 4” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD5: PhysicalKeyboardKey

Represents the location of the “Numpad 5” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD6: PhysicalKeyboardKey

Represents the location of the “Numpad 6” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD7: PhysicalKeyboardKey

Represents the location of the “Numpad 7” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD8: PhysicalKeyboardKey

Represents the location of the “Numpad 8” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD9: PhysicalKeyboardKey

Represents the location of the “Numpad 9” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD0: PhysicalKeyboardKey

Represents the location of the “Numpad 0” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_DECIMAL: PhysicalKeyboardKey

Represents the location of the “Numpad Decimal” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const INTL_BACKSLASH: PhysicalKeyboardKey

Represents the location of the “Intl Backslash” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const CONTEXT_MENU: PhysicalKeyboardKey

Represents the location of the “Context Menu” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const POWER: PhysicalKeyboardKey

Represents the location of the “Power” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_EQUAL: PhysicalKeyboardKey

Represents the location of the “Numpad Equal” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F13: PhysicalKeyboardKey

Represents the location of the “F13” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F14: PhysicalKeyboardKey

Represents the location of the “F14” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F15: PhysicalKeyboardKey

Represents the location of the “F15” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F16: PhysicalKeyboardKey

Represents the location of the “F16” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F17: PhysicalKeyboardKey

Represents the location of the “F17” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F18: PhysicalKeyboardKey

Represents the location of the “F18” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F19: PhysicalKeyboardKey

Represents the location of the “F19” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F20: PhysicalKeyboardKey

Represents the location of the “F20” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F21: PhysicalKeyboardKey

Represents the location of the “F21” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F22: PhysicalKeyboardKey

Represents the location of the “F22” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F23: PhysicalKeyboardKey

Represents the location of the “F23” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const F24: PhysicalKeyboardKey

Represents the location of the “F24” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const OPEN: PhysicalKeyboardKey

Represents the location of the “Open” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const HELP: PhysicalKeyboardKey

Represents the location of the “Help” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SELECT: PhysicalKeyboardKey

Represents the location of the “Select” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const AGAIN: PhysicalKeyboardKey

Represents the location of the “Again” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const UNDO: PhysicalKeyboardKey

Represents the location of the “Undo” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const CUT: PhysicalKeyboardKey

Represents the location of the “Cut” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const COPY: PhysicalKeyboardKey

Represents the location of the “Copy” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const PASTE: PhysicalKeyboardKey

Represents the location of the “Paste” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const FIND: PhysicalKeyboardKey

Represents the location of the “Find” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const AUDIO_VOLUME_MUTE: PhysicalKeyboardKey

Represents the location of the “Audio Volume Mute” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const AUDIO_VOLUME_UP: PhysicalKeyboardKey

Represents the location of the “Audio Volume Up” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const AUDIO_VOLUME_DOWN: PhysicalKeyboardKey

Represents the location of the “Audio Volume Down” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_COMMA: PhysicalKeyboardKey

Represents the location of the “Numpad Comma” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const INTL_RO: PhysicalKeyboardKey

Represents the location of the “Intl Ro” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KANA_MODE: PhysicalKeyboardKey

Represents the location of the “Kana Mode” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const INTL_YEN: PhysicalKeyboardKey

Represents the location of the “Intl Yen” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const CONVERT: PhysicalKeyboardKey

Represents the location of the “Convert” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NON_CONVERT: PhysicalKeyboardKey

Represents the location of the “Non Convert” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LANG1: PhysicalKeyboardKey

Represents the location of the “Lang 1” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LANG2: PhysicalKeyboardKey

Represents the location of the “Lang 2” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LANG3: PhysicalKeyboardKey

Represents the location of the “Lang 3” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LANG4: PhysicalKeyboardKey

Represents the location of the “Lang 4” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LANG5: PhysicalKeyboardKey

Represents the location of the “Lang 5” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ABORT: PhysicalKeyboardKey

Represents the location of the “Abort” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const PROPS: PhysicalKeyboardKey

Represents the location of the “Props” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_PAREN_LEFT: PhysicalKeyboardKey

Represents the location of the “Numpad Paren Left” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_PAREN_RIGHT: PhysicalKeyboardKey

Represents the location of the “Numpad Paren Right” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_BACKSPACE: PhysicalKeyboardKey

Represents the location of the “Numpad Backspace” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_MEMORY_STORE: PhysicalKeyboardKey

Represents the location of the “Numpad Memory Store” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_MEMORY_RECALL: PhysicalKeyboardKey

Represents the location of the “Numpad Memory Recall” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_MEMORY_CLEAR: PhysicalKeyboardKey

Represents the location of the “Numpad Memory Clear” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_MEMORY_ADD: PhysicalKeyboardKey

Represents the location of the “Numpad Memory Add” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_MEMORY_SUBTRACT: PhysicalKeyboardKey

Represents the location of the “Numpad Memory Subtract” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_SIGN_CHANGE: PhysicalKeyboardKey

Represents the location of the “Numpad Sign Change” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_CLEAR: PhysicalKeyboardKey

Represents the location of the “Numpad Clear” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NUMPAD_CLEAR_ENTRY: PhysicalKeyboardKey

Represents the location of the “Numpad Clear Entry” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const CONTROL_LEFT: PhysicalKeyboardKey

Represents the location of the “Control Left” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SHIFT_LEFT: PhysicalKeyboardKey

Represents the location of the “Shift Left” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ALT_LEFT: PhysicalKeyboardKey

Represents the location of the “Alt Left” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const META_LEFT: PhysicalKeyboardKey

Represents the location of the “Meta Left” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const CONTROL_RIGHT: PhysicalKeyboardKey

Represents the location of the “Control Right” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SHIFT_RIGHT: PhysicalKeyboardKey

Represents the location of the “Shift Right” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ALT_RIGHT: PhysicalKeyboardKey

Represents the location of the “Alt Right” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const META_RIGHT: PhysicalKeyboardKey

Represents the location of the “Meta Right” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const INFO: PhysicalKeyboardKey

Represents the location of the “Info” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const CLOSED_CAPTION_TOGGLE: PhysicalKeyboardKey

Represents the location of the “Closed Caption Toggle” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BRIGHTNESS_UP: PhysicalKeyboardKey

Represents the location of the “Brightness Up” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BRIGHTNESS_DOWN: PhysicalKeyboardKey

Represents the location of the “Brightness Down” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BRIGHTNESS_TOGGLE: PhysicalKeyboardKey

Represents the location of the “Brightness Toggle” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BRIGHTNESS_MINIMUM: PhysicalKeyboardKey

Represents the location of the “Brightness Minimum” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BRIGHTNESS_MAXIMUM: PhysicalKeyboardKey

Represents the location of the “Brightness Maximum” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BRIGHTNESS_AUTO: PhysicalKeyboardKey

Represents the location of the “Brightness Auto” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KBD_ILLUM_UP: PhysicalKeyboardKey

Represents the location of the “Kbd Illum Up” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KBD_ILLUM_DOWN: PhysicalKeyboardKey

Represents the location of the “Kbd Illum Down” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_LAST: PhysicalKeyboardKey

Represents the location of the “Media Last” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_PHONE: PhysicalKeyboardKey

Represents the location of the “Launch Phone” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const PROGRAM_GUIDE: PhysicalKeyboardKey

Represents the location of the “Program Guide” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const EXIT: PhysicalKeyboardKey

Represents the location of the “Exit” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const CHANNEL_UP: PhysicalKeyboardKey

Represents the location of the “Channel Up” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const CHANNEL_DOWN: PhysicalKeyboardKey

Represents the location of the “Channel Down” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_PLAY: PhysicalKeyboardKey

Represents the location of the “Media Play” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_PAUSE: PhysicalKeyboardKey

Represents the location of the “Media Pause” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_RECORD: PhysicalKeyboardKey

Represents the location of the “Media Record” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_FAST_FORWARD: PhysicalKeyboardKey

Represents the location of the “Media Fast Forward” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_REWIND: PhysicalKeyboardKey

Represents the location of the “Media Rewind” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_TRACK_NEXT: PhysicalKeyboardKey

Represents the location of the “Media Track Next” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_TRACK_PREVIOUS: PhysicalKeyboardKey

Represents the location of the “Media Track Previous” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_STOP: PhysicalKeyboardKey

Represents the location of the “Media Stop” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const EJECT: PhysicalKeyboardKey

Represents the location of the “Eject” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_PLAY_PAUSE: PhysicalKeyboardKey

Represents the location of the “Media Play Pause” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SPEECH_INPUT_TOGGLE: PhysicalKeyboardKey

Represents the location of the “Speech Input Toggle” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BASS_BOOST: PhysicalKeyboardKey

Represents the location of the “Bass Boost” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MEDIA_SELECT: PhysicalKeyboardKey

Represents the location of the “Media Select” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_WORD_PROCESSOR: PhysicalKeyboardKey

Represents the location of the “Launch Word Processor” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_SPREADSHEET: PhysicalKeyboardKey

Represents the location of the “Launch Spreadsheet” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_MAIL: PhysicalKeyboardKey

Represents the location of the “Launch Mail” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_CONTACTS: PhysicalKeyboardKey

Represents the location of the “Launch Contacts” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_CALENDAR: PhysicalKeyboardKey

Represents the location of the “Launch Calendar” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_APP2: PhysicalKeyboardKey

Represents the location of the “Launch App2” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_APP1: PhysicalKeyboardKey

Represents the location of the “Launch App1” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_INTERNET_BROWSER: PhysicalKeyboardKey

Represents the location of the “Launch Internet Browser” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LOG_OFF: PhysicalKeyboardKey

Represents the location of the “Log Off” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LOCK_SCREEN: PhysicalKeyboardKey

Represents the location of the “Lock Screen” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_CONTROL_PANEL: PhysicalKeyboardKey

Represents the location of the “Launch Control Panel” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SELECT_TASK: PhysicalKeyboardKey

Represents the location of the “Select Task” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_DOCUMENTS: PhysicalKeyboardKey

Represents the location of the “Launch Documents” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SPELL_CHECK: PhysicalKeyboardKey

Represents the location of the “Spell Check” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_KEYBOARD_LAYOUT: PhysicalKeyboardKey

Represents the location of the “Launch Keyboard Layout” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_SCREEN_SAVER: PhysicalKeyboardKey

Represents the location of the “Launch Screen Saver” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_AUDIO_BROWSER: PhysicalKeyboardKey

Represents the location of the “Launch Audio Browser” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const LAUNCH_ASSISTANT: PhysicalKeyboardKey

Represents the location of the “Launch Assistant” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const NEW_KEY: PhysicalKeyboardKey

Represents the location of the “New Key” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const CLOSE: PhysicalKeyboardKey

Represents the location of the “Close” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SAVE: PhysicalKeyboardKey

Represents the location of the “Save” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const PRINT: PhysicalKeyboardKey

Represents the location of the “Print” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Represents the location of the “Browser Search” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BROWSER_HOME: PhysicalKeyboardKey

Represents the location of the “Browser Home” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BROWSER_BACK: PhysicalKeyboardKey

Represents the location of the “Browser Back” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BROWSER_FORWARD: PhysicalKeyboardKey

Represents the location of the “Browser Forward” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BROWSER_STOP: PhysicalKeyboardKey

Represents the location of the “Browser Stop” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BROWSER_REFRESH: PhysicalKeyboardKey

Represents the location of the “Browser Refresh” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const BROWSER_FAVORITES: PhysicalKeyboardKey

Represents the location of the “Browser Favorites” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ZOOM_IN: PhysicalKeyboardKey

Represents the location of the “Zoom In” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ZOOM_OUT: PhysicalKeyboardKey

Represents the location of the “Zoom Out” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const ZOOM_TOGGLE: PhysicalKeyboardKey

Represents the location of the “Zoom Toggle” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const REDO: PhysicalKeyboardKey

Represents the location of the “Redo” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MAIL_REPLY: PhysicalKeyboardKey

Represents the location of the “Mail Reply” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MAIL_FORWARD: PhysicalKeyboardKey

Represents the location of the “Mail Forward” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const MAIL_SEND: PhysicalKeyboardKey

Represents the location of the “Mail Send” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const KEYBOARD_LAYOUT_SELECT: PhysicalKeyboardKey

Represents the location of the “Keyboard Layout Select” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const SHOW_ALL_WINDOWS: PhysicalKeyboardKey

Represents the location of the “Show All Windows” key on a generalized keyboard.

See the function RawKeyEvent.physicalKey for more information.

Source

pub const fn new(usb_hid_usage: u64) -> PhysicalKeyboardKey

Creates a new PhysicalKeyboardKey for a USB HID usage.

Source

pub fn debug_name(&self) -> Option<String>

The debug string to print for this keyboard key, which will be None in release mode.

Source

pub fn find_key_by_code(usage_code: u64) -> Option<PhysicalKeyboardKey>

Finds a known PhysicalKeyboardKey that matches the given USB HID usage code.

Source

pub fn known_physical_keys() -> impl Iterator<Item = PhysicalKeyboardKey>

All predefined constant PhysicalKeyboardKeys.

Trait Implementations§

Source§

impl Clone for PhysicalKeyboardKey

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PhysicalKeyboardKey

Source§

impl Debug for PhysicalKeyboardKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for PhysicalKeyboardKey

Source§

impl Hash for PhysicalKeyboardKey

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl KeyboardKey for PhysicalKeyboardKey

Source§

impl Ord for PhysicalKeyboardKey

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for PhysicalKeyboardKey

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for PhysicalKeyboardKey

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for PhysicalKeyboardKey

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,