Skip to main content

InputButton

Enum InputButton 

Source
#[repr(u32)]
pub enum InputButton {
Show 64 variants Key0 = 48, Key1 = 49, Key2 = 50, Key3 = 51, Key4 = 52, Key5 = 53, Key6 = 54, Key7 = 55, Key8 = 56, Key9 = 57, A = 65, B = 66, C = 67, D = 68, E = 69, F = 70, G = 71, H = 72, I = 73, J = 74, K = 75, L = 76, M = 77, N = 78, O = 79, P = 80, Q = 81, R = 82, S = 83, T = 84, U = 85, V = 86, W = 87, X = 88, Y = 89, Z = 90, NonPrintable = 256, Divide = 257, Multiply = 258, Subtract = 259, Plus = 260, F1 = 261, F2 = 262, F3 = 263, F4 = 264, F5 = 265, F6 = 266, F7 = 267, F8 = 268, F9 = 269, F10 = 270, F11 = 271, F12 = 272, Home = 273, End = 274, Insert = 275, Delete = 276, PageUp = 277, PageDn = 278, Backspace = 279, Tab = 280, PrtScrn = 281, Pause = 282, Max = 283,
}
Expand description

User input key codes.

Variants§

§

Key0 = 48

The ‘0’ key over the letters.

§

Key1 = 49

The ‘1’ key over the letters.

§

Key2 = 50

The ‘2’ key over the letters.

§

Key3 = 51

The ‘3’ key over the letters.

§

Key4 = 52

The ‘4’ key over the letters.

§

Key5 = 53

The ‘5’ key over the letters.

§

Key6 = 54

The ‘6’ key over the letters.

§

Key7 = 55

The ‘7’ key over the letters.

§

Key8 = 56

The ‘8’ key over the letters.

§

Key9 = 57

The ‘9’ key over the letters.

§

A = 65

§

B = 66

§

C = 67

§

D = 68

§

E = 69

§

F = 70

§

G = 71

§

H = 72

§

I = 73

§

J = 74

§

K = 75

§

L = 76

§

M = 77

§

N = 78

§

O = 79

§

P = 80

§

Q = 81

§

R = 82

§

S = 83

§

T = 84

§

U = 85

§

V = 86

§

W = 87

§

X = 88

§

Y = 89

§

Z = 90

§

NonPrintable = 256

Leave the rest of the ASCII range free, in case the RenderDoc developers decide to use it later.

§

Divide = 257

Division key on the numpad.

§

Multiply = 258

Multiplication key on the numpad.

§

Subtract = 259

Subtraction key on the numpad.

§

Plus = 260

Addition key on the numpad.

§

F1 = 261

§

F2 = 262

§

F3 = 263

§

F4 = 264

§

F5 = 265

§

F6 = 266

§

F7 = 267

§

F8 = 268

§

F9 = 269

§

F10 = 270

§

F11 = 271

§

F12 = 272

§

Home = 273

§

End = 274

§

Insert = 275

§

Delete = 276

§

PageUp = 277

§

PageDn = 278

§

Backspace = 279

§

Tab = 280

§

PrtScrn = 281

§

Pause = 282

§

Max = 283

Trait Implementations§

Source§

impl Clone for InputButton

Source§

fn clone(&self) -> InputButton

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 InputButton

Source§

impl Debug for InputButton

Source§

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

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

impl Eq for InputButton

Source§

impl From<VirtualKeyCode> for InputButton

Available on crate feature winit only.
Source§

fn from(code: VirtualKeyCode) -> InputButton

Converts to this type from the input type.
Source§

impl Hash for InputButton

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 PartialEq for InputButton

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for InputButton

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<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<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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.