Enum yy_typings::object_yy::VirtualKeyCode
source · [−]#[repr(u32)]
pub enum VirtualKeyCode {
Show 84 variants
NoKey,
AnyKey,
Backspace,
Tab,
Return,
Shift,
Control,
Alt,
Pause,
Escape,
Space,
PageUp,
PageDown,
End,
Home,
Left,
Up,
Right,
Down,
Insert,
Delete,
Zero,
One,
Two,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
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,
Numpad0,
Numpad1,
Numpad2,
Numpad3,
Numpad4,
Numpad5,
Numpad6,
Numpad7,
Numpad8,
Numpad9,
NumpadMultiply,
NumpadAdd,
NumpadSubtract,
NumpadDeciminal,
NumpadDivide,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
}
Expand description
Symbolic names for the keycodes used by Gms2. These are a cutdown version of
the Microsoft Virtual keycodes from winuser.h
, and with Vk_Any and Vk_None
(custom Gms2) added.
Variants
NoKey
AnyKey
Backspace
Tab
Return
Shift
Control
Alt
Pause
Escape
Space
PageUp
PageDown
End
Home
Left
Up
Right
Down
Insert
Delete
Zero
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
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
Numpad0
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
Numpad8
Numpad9
NumpadMultiply
NumpadAdd
NumpadSubtract
NumpadDeciminal
NumpadDivide
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
Trait Implementations
sourceimpl AsRef<str> for VirtualKeyCode
impl AsRef<str> for VirtualKeyCode
sourceimpl Clone for VirtualKeyCode
impl Clone for VirtualKeyCode
sourcefn clone(&self) -> VirtualKeyCode
fn clone(&self) -> VirtualKeyCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VirtualKeyCode
impl Debug for VirtualKeyCode
sourceimpl<'de> Deserialize<'de> for VirtualKeyCode
impl<'de> Deserialize<'de> for VirtualKeyCode
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromPrimitive for VirtualKeyCode
impl FromPrimitive for VirtualKeyCode
sourcefn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourcefn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
sourceimpl Hash for VirtualKeyCode
impl Hash for VirtualKeyCode
sourceimpl Ord for VirtualKeyCode
impl Ord for VirtualKeyCode
sourcefn cmp(&self, other: &VirtualKeyCode) -> Ordering
fn cmp(&self, other: &VirtualKeyCode) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<VirtualKeyCode> for VirtualKeyCode
impl PartialEq<VirtualKeyCode> for VirtualKeyCode
sourcefn eq(&self, other: &VirtualKeyCode) -> bool
fn eq(&self, other: &VirtualKeyCode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialOrd<VirtualKeyCode> for VirtualKeyCode
impl PartialOrd<VirtualKeyCode> for VirtualKeyCode
sourcefn partial_cmp(&self, other: &VirtualKeyCode) -> Option<Ordering>
fn partial_cmp(&self, other: &VirtualKeyCode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for VirtualKeyCode
impl Serialize for VirtualKeyCode
impl Copy for VirtualKeyCode
impl Eq for VirtualKeyCode
impl StructuralEq for VirtualKeyCode
impl StructuralPartialEq for VirtualKeyCode
Auto Trait Implementations
impl RefUnwindSafe for VirtualKeyCode
impl Send for VirtualKeyCode
impl Sync for VirtualKeyCode
impl Unpin for VirtualKeyCode
impl UnwindSafe for VirtualKeyCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more