[][src]Enum beryllium::Keycode

#[repr(i32)]
pub enum Keycode {
    _0,
    _1,
    _2,
    _3,
    _4,
    _5,
    _6,
    _7,
    _8,
    _9,
    AC_Back,
    AC_Bookmarks,
    AC_Forward,
    AC_Home,
    AC_Refresh,
    AC_Search,
    AC_Stop,
    Again,
    AltErase,
    Ampersand,
    App1,
    App2,
    Application,
    Asterisk,
    At,
    AudioFastForward,
    AudioMute,
    AudioNext,
    AudioPlay,
    AudioPrev,
    AudioRewind,
    AudioStop,
    Backquote,
    Backslash,
    Backspace,
    BrightnessDown,
    BrightnessUp,
    Calculator,
    Cancel,
    CapsLock,
    Caret,
    Clear,
    ClearAgain,
    Colon,
    Comma,
    Computer,
    Copy,
    CrSel,
    CurrencySubUnit,
    CurrencyUnit,
    Cut,
    DecimalSeparator,
    Delete,
    DisplaySwitch,
    Dollar,
    Down,
    Eject,
    End,
    Equals,
    Escape,
    Exclamation,
    Execute,
    ExSel,
    F1,
    F2,
    F3,
    F4,
    F5,
    F6,
    F7,
    F8,
    F9,
    F10,
    F11,
    F12,
    F13,
    F14,
    F15,
    F16,
    F17,
    F18,
    F19,
    F20,
    F21,
    F22,
    F23,
    F24,
    Find,
    Greater,
    Hash,
    Help,
    Home,
    Insert,
    KbdIlluminationDown,
    KbdIlluminationToggle,
    KbdIlluminationUp,
    KP_0,
    KP_00,
    KP_000,
    KP_1,
    KP_2,
    KP_3,
    KP_4,
    KP_5,
    KP_6,
    KP_7,
    KP_8,
    KP_9,
    KP_A,
    KP_Ampersand,
    KP_At,
    KP_B,
    KP_Backspace,
    KP_Binary,
    KP_C,
    KP_Clear,
    KP_ClearEntry,
    KP_Colon,
    KP_Comma,
    KP_D,
    KP_DblAmpersand,
    KP_DblVerticalBar,
    KP_Decimal,
    KP_Divide,
    KP_E,
    KP_Enter,
    KP_Equals,
    KP_EqualsAs400,
    KP_Exclamation,
    KP_F,
    KP_Greater,
    KP_Hash,
    KP_Hexadecimal,
    KP_LeftBrace,
    KP_LeftParen,
    KP_Less,
    KP_MemAdd,
    KP_MemClear,
    KP_MemDivide,
    KP_MemMultiply,
    KP_MemRecall,
    KP_MemStore,
    KP_MemSubtract,
    KP_Minus,
    KP_Multiply,
    KP_Octal,
    KP_Percent,
    KP_Period,
    KP_Plus,
    KP_PlusMinus,
    KP_Power,
    KP_RightBrace,
    KP_RightParen,
    KP_Space,
    KP_Tab,
    KP_VerticalBar,
    KP_Xor,
    LeftAlt,
    LeftCtrl,
    Left,
    LeftBracket,
    LeftParen,
    Less,
    LeftGUI,
    LeftShift,
    Mail,
    MediaSelect,
    Menu,
    Minus,
    Mode,
    Mute,
    NumLockClear,
    Oper,
    Out,
    PageDown,
    PageUp,
    Paste,
    Pause,
    Percent,
    Period,
    Plus,
    Power,
    PrintScreen,
    Prior,
    Question,
    Quote,
    DblQuote,
    RightAlt,
    RightCtrl,
    Return,
    Return2,
    RightGUI,
    Right,
    RightBracket,
    RightParen,
    RightShift,
    ScrollLock,
    Select,
    Semicolon,
    Separator,
    Slash,
    Sleep,
    Space,
    Stop,
    SysReq,
    Tab,
    ThousandsSeparator,
    Underscore,
    Undo,
    Unknown,
    Up,
    VolumeDown,
    VolumeUp,
    WWW,
    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,
}

Different keycode values that can come in.

A keycode is a "virtual" key value, and which key on the keyboard counts as which keycode can change according to the user's software configuration. Note that with most layouts there are keys that don't have any Keycode associated with them. Also note that not all Keycode values can be produced by a given layout.

Some names have abbreviations:

  • AC = Application Control
  • Kbd = Keyboard
  • KP = Keypad

Variants

_0_1_2_3_4_5_6_7_8_9AC_BackAC_BookmarksAC_ForwardAC_HomeAC_RefreshAC_SearchAC_StopAgainAltEraseAmpersandApp1App2ApplicationAsteriskAtAudioFastForwardAudioMuteAudioNextAudioPlayAudioPrevAudioRewindAudioStopBackquoteBackslashBackspaceBrightnessDownBrightnessUpCalculatorCancelCapsLockCaretClearClearAgainColonCommaComputerCopyCrSelCurrencySubUnitCurrencyUnitCutDecimalSeparatorDeleteDisplaySwitchDollarDownEjectEndEqualsEscapeExclamationExecuteExSelF1F2F3F4F5F6F7F8F9F10F11F12F13F14F15F16F17F18F19F20F21F22F23F24FindGreaterHashHelpHomeInsertKbdIlluminationDownKbdIlluminationToggleKbdIlluminationUpKP_0KP_00KP_000KP_1KP_2KP_3KP_4KP_5KP_6KP_7KP_8KP_9KP_AKP_AmpersandKP_AtKP_BKP_BackspaceKP_BinaryKP_CKP_ClearKP_ClearEntryKP_ColonKP_CommaKP_DKP_DblAmpersandKP_DblVerticalBarKP_DecimalKP_DivideKP_EKP_EnterKP_EqualsKP_EqualsAs400KP_ExclamationKP_FKP_GreaterKP_HashKP_HexadecimalKP_LeftBraceKP_LeftParenKP_LessKP_MemAddKP_MemClearKP_MemDivideKP_MemMultiplyKP_MemRecallKP_MemStoreKP_MemSubtractKP_MinusKP_MultiplyKP_OctalKP_PercentKP_PeriodKP_PlusKP_PlusMinusKP_PowerKP_RightBraceKP_RightParenKP_SpaceKP_TabKP_VerticalBarKP_XorLeftAltLeftCtrlLeftLeftBracketLeftParenLessLeftGUILeftShiftMailMediaSelectMenuMinusModeMuteNumLockClearOperOutPageDownPageUpPastePausePercentPeriodPlusPowerPrintScreenPriorQuestionQuoteDblQuoteRightAltRightCtrlReturnReturn2RightGUIRightRightBracketRightParenRightShiftScrollLockSelectSemicolonSeparatorSlashSleepSpaceStopSysReqTabThousandsSeparatorUnderscoreUndoUnknownUpVolumeDownVolumeUpWWWABCDEFGHIJKLMNOPQRSTUVWXYZ

Trait Implementations

impl PartialEq<Keycode> for Keycode[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Clone for Keycode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Keycode[src]

impl Copy for Keycode[src]

impl Debug for Keycode[src]

impl TryFrom<i32> for Keycode[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for Keycode

impl Unpin for Keycode

impl Sync for Keycode

impl UnwindSafe for Keycode

impl RefUnwindSafe for Keycode

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]