[−][src]Enum sdl2::keyboard::Scancode
Variants
ABCDEFGHIJKLMNOPQRSTUVWXYZNum1Num2Num3Num4Num5Num6Num7Num8Num9Num0ReturnEscapeBackspaceTabSpaceMinusEqualsLeftBracketRightBracketBackslashNonUsHashSemicolonApostropheGraveCommaPeriodSlashCapsLockF1F2F3F4F5F6F7F8F9F10F11F12PrintScreenScrollLockPauseInsertHomePageUpDeleteEndPageDownRightLeftDownUpNumLockClearKpDivideKpMultiplyKpMinusKpPlusKpEnterKp1Kp2Kp3Kp4Kp5Kp6Kp7Kp8Kp9Kp0KpPeriodNonUsBackslashApplicationPowerKpEqualsF13F14F15F16F17F18F19F20F21F22F23F24ExecuteHelpMenuSelectStopAgainUndoCutCopyPasteFindMuteVolumeUpVolumeDownKpCommaKpEqualsAS400International1International2International3International4International5International6International7International8International9Lang1Lang2Lang3Lang4Lang5Lang6Lang7Lang8Lang9AltEraseSysReqCancelClearPriorReturn2SeparatorOutOperClearAgainCrSelExSelKp00Kp000ThousandsSeparatorDecimalSeparatorCurrencyUnitCurrencySubUnitKpLeftParenKpRightParenKpLeftBraceKpRightBraceKpTabKpBackspaceKpAKpBKpCKpDKpEKpFKpXorKpPowerKpPercentKpLessKpGreaterKpAmpersandKpDblAmpersandKpVerticalBarKpDblVerticalBarKpColonKpHashKpSpaceKpAtKpExclamKpMemStoreKpMemRecallKpMemClearKpMemAddKpMemSubtractKpMemMultiplyKpMemDivideKpPlusMinusKpClearKpClearEntryKpBinaryKpOctalKpDecimalKpHexadecimalLCtrlLShiftLAltLGuiRCtrlRShiftRAltRGuiModeAudioNextAudioPrevAudioStopAudioPlayAudioMuteMediaSelectWwwMailCalculatorComputerAcSearchAcHomeAcBackAcForwardAcStopAcRefreshAcBookmarksBrightnessDownBrightnessUpDisplaySwitchKbdIllumToggleKbdIllumDownKbdIllumUpEjectSleepApp1App2NumMethods
impl Scancode[src]
impl Scancode[src]
pub fn from_keycode(keycode: Keycode) -> Option<Scancode>[src]
Gets the scancode from a virtual key. Returns None if there is no corresponding scancode.
pub fn from_name(name: &str) -> Option<Scancode>[src]
pub fn name(self) -> &'static str[src]
Trait Implementations
impl Clone for Scancode[src]
fn clone(&self) -> Scancode[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for Scancode[src]
impl Copy for Scancode[src]
impl PartialEq<Scancode> for Scancode[src]
fn eq(&self, other: &Scancode) -> bool[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
default fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Display for Scancode[src]
impl Debug for Scancode[src]
impl Hash for Scancode[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,