Struct sfml::window::Key [−][src]
Key codes known to SFML.
Implementations
impl Key
[src]
pub const UNKNOWN: Self
[src]
Unhandled key
pub const A: Self
[src]
The A key
pub const B: Self
[src]
The B key
pub const C: Self
[src]
The C key
pub const D: Self
[src]
The D key
pub const E: Self
[src]
The E key
pub const F: Self
[src]
The F key
pub const G: Self
[src]
The G key
pub const H: Self
[src]
The H key
pub const I: Self
[src]
The I key
pub const J: Self
[src]
The J key
pub const K: Self
[src]
The K key
pub const L: Self
[src]
The L key
pub const M: Self
[src]
The M key
pub const N: Self
[src]
The N key
pub const O: Self
[src]
The O key
pub const P: Self
[src]
The P key
pub const Q: Self
[src]
The Q key
pub const R: Self
[src]
The R key
pub const S: Self
[src]
The S key
pub const T: Self
[src]
The T key
pub const U: Self
[src]
The U key
pub const V: Self
[src]
The V key
pub const W: Self
[src]
The W key
pub const X: Self
[src]
The X key
pub const Y: Self
[src]
The Y key
pub const Z: Self
[src]
The Z key
pub const NUM0: Self
[src]
The 0 key
pub const NUM1: Self
[src]
The 1 key
pub const NUM2: Self
[src]
The 2 key
pub const NUM3: Self
[src]
The 3 key
pub const NUM4: Self
[src]
The 4 key
pub const NUM5: Self
[src]
The 5 key
pub const NUM6: Self
[src]
The 6 key
pub const NUM7: Self
[src]
The 7 key
pub const NUM8: Self
[src]
The 8 key
pub const NUM9: Self
[src]
The 9 key
pub const ESCAPE: Self
[src]
The Escape key
pub const LCONTROL: Self
[src]
The left Control key
pub const LSHIFT: Self
[src]
The left Shift key
pub const LALT: Self
[src]
The left Alt key
pub const LSYSTEM: Self
[src]
The left OS specific key: window (Windows and Linux), apple (Mac OS X), …
pub const RCONTROL: Self
[src]
The right Control key
pub const RSHIFT: Self
[src]
The right Shift key
pub const RALT: Self
[src]
The right Alt key
pub const RSYSTEM: Self
[src]
The right OS specific key: window (Windows and Linux), apple (Mac OS X), …
pub const MENU: Self
[src]
The Menu key
pub const LBRACKET: Self
[src]
The [ key
pub const RBRACKET: Self
[src]
The ] key
pub const SEMICOLON: Self
[src]
The ; key
pub const COMMA: Self
[src]
The , key
pub const PERIOD: Self
[src]
The . key
pub const QUOTE: Self
[src]
The ’ key
pub const SLASH: Self
[src]
The / key
pub const BACKSLASH: Self
[src]
The \ key
pub const TILDE: Self
[src]
The ~ key
pub const EQUAL: Self
[src]
The = key
pub const HYPHEN: Self
[src]
The - key (hyphen)
pub const SPACE: Self
[src]
The Space key
pub const ENTER: Self
[src]
The Enter/Return keys
pub const BACKSPACE: Self
[src]
The Backspace key
pub const TAB: Self
[src]
The Tabulation key
pub const PAGEUP: Self
[src]
The Page up key
pub const PAGEDOWN: Self
[src]
The Page down key
pub const END: Self
[src]
The End key
pub const HOME: Self
[src]
The Home key
pub const INSERT: Self
[src]
The Insert key
pub const DELETE: Self
[src]
The Delete key
pub const ADD: Self
[src]
The + key
pub const SUBTRACT: Self
[src]
The - key (minus, usually from numpad)
pub const MULTIPLY: Self
[src]
The * key
pub const DIVIDE: Self
[src]
The / key
pub const LEFT: Self
[src]
Left arrow
pub const RIGHT: Self
[src]
Right arrow
pub const UP: Self
[src]
Up arrow
pub const DOWN: Self
[src]
Down arrow
pub const NUMPAD0: Self
[src]
The numpad 0 key
pub const NUMPAD1: Self
[src]
The numpad 1 key
pub const NUMPAD2: Self
[src]
The numpad 2 key
pub const NUMPAD3: Self
[src]
The numpad 3 key
pub const NUMPAD4: Self
[src]
The numpad 4 key
pub const NUMPAD5: Self
[src]
The numpad 5 key
pub const NUMPAD6: Self
[src]
The numpad 6 key
pub const NUMPAD7: Self
[src]
The numpad 7 key
pub const NUMPAD8: Self
[src]
The numpad 8 key
pub const NUMPAD9: Self
[src]
The numpad 9 key
pub const F1: Self
[src]
The F1 key
pub const F2: Self
[src]
The F2 key
pub const F3: Self
[src]
The F3 key
pub const F4: Self
[src]
The F4 key
pub const F5: Self
[src]
The F5 key
pub const F6: Self
[src]
The F6 key
pub const F7: Self
[src]
The F7 key
pub const F8: Self
[src]
The F8 key
pub const F9: Self
[src]
The F9 key
pub const F10: Self
[src]
The F10 key
pub const F11: Self
[src]
The F11 key
pub const F12: Self
[src]
The F12 key
pub const F13: Self
[src]
The F13 key
pub const F14: Self
[src]
The F14 key
pub const F15: Self
[src]
The F15 key
pub const PAUSE: Self
[src]
The Pause key
pub const COUNT: Self
[src]
The total number of keyboard keys
impl Key
[src]
#[must_use]pub fn is_pressed(self) -> bool
[src]
Return whether this key is currently pressed.
Queries the real-time state of the keyboard, even if keys have been pressed or released while no window was focused and no events were triggered.
Trait Implementations
impl Clone for Key
[src]
impl Copy for Key
[src]
impl Debug for Key
[src]
impl Eq for Key
[src]
impl Hash for Key
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Key
[src]
fn cmp(&self, other: &Key) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Key> for Key
[src]
impl PartialOrd<Key> for Key
[src]
fn partial_cmp(&self, other: &Key) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Key
[src]
impl StructuralPartialEq 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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,