pub struct VK(/* private fields */);Expand description
[microsoft.com] VK_* values specific to Xbox 360 controllers
Implementations§
Source§impl VK
impl VK
Sourcepub const fn from_unchecked(d3d: u16) -> Self
pub const fn from_unchecked(d3d: u16) -> Self
Convert from an underlying winapi type.
This is probably safe… probably…
Sourcepub const fn into_inner(self) -> u16
pub const fn into_inner(self) -> u16
Convert back into an underlying winapi type.
Source§impl VK
impl VK
Sourcepub const None: VK
pub const None: VK
No virtual key corresponding to this keystroke event (input method editor input?)
Sourcepub const PadA: VK
pub const PadA: VK
Typically synonymous select/accept in menus on Xbox 360 style controllers/games/console.
| Controller | Legend | Where |
|---|---|---|
| Xbox 360 | Green A | Bottom button of the right face cluster |
| Xbox One | A | Bottom button of the right face cluster |
Sourcepub const PadB: VK
pub const PadB: VK
Typically synonymous back/cancel in menus on Xbox 360 style controllers/games/console.
| Controller | Legend | Where |
|---|---|---|
| Xbox 360 | Red B | Right button of the right face cluster |
| Xbox One | B | Right button of the right face cluster |
Sourcepub const PadX: VK
pub const PadX: VK
| Controller | Legend | Where |
|---|---|---|
| Xbox 360 | Blue X | Left button of the right face cluster |
| Xbox One | X | Left button of the right face cluster |
Sourcepub const PadY: VK
pub const PadY: VK
| Controller | Legend | Where |
|---|---|---|
| Xbox 360 | Yellow Y | Top button of the right face cluster |
| Xbox One | Y | Top button of the right face cluster |
Sourcepub const PadRShoulder: VK
pub const PadRShoulder: VK
| Controller | Where |
|---|---|
| Xbox 360 | Top right on the controller |
| Xbox One | Top right on the controller |
Sourcepub const PadLShoulder: VK
pub const PadLShoulder: VK
| Controller | Where |
|---|---|
| Xbox 360 | Top left on the controller |
| Xbox One | Top left on the controller |
Sourcepub const PadRTrigger: VK
pub const PadRTrigger: VK
Analog trigger behind the right side of the gamepad.
Sourcepub const PadLTrigger: VK
pub const PadLTrigger: VK
Analog trigger behind the left side of the gamepad.
Sourcepub const PadDPadUp: VK
pub const PadDPadUp: VK
| Controller | Where |
|---|---|
| Xbox 360 | Directional pad on the bottom left of the face |
| Xbox One | Directional pad on the bottom left of the face |
Sourcepub const PadDPadDown: VK
pub const PadDPadDown: VK
| Controller | Where |
|---|---|
| Xbox 360 | Directional pad on the bottom left of the face |
| Xbox One | Directional pad on the bottom left of the face |
Sourcepub const PadDPadLeft: VK
pub const PadDPadLeft: VK
| Controller | Where |
|---|---|
| Xbox 360 | Directional pad on the bottom left of the face |
| Xbox One | Directional pad on the bottom left of the face |
Sourcepub const PadDPadRight: VK
pub const PadDPadRight: VK
| Controller | Where |
|---|---|
| Xbox 360 | Directional pad on the bottom left of the face |
| Xbox One | Directional pad on the bottom left of the face |
Sourcepub const PadStart: VK
pub const PadStart: VK
| Controller | Legend | Where |
|---|---|---|
| Xbox 360 | Start ᐅ | Right button of the middle face cluster |
| Xbox One | Menu ≡ | Right button of the middle face cluster |
Sourcepub const PadBack: VK
pub const PadBack: VK
| Controller | Legend | Where |
|---|---|---|
| Xbox 360 | Back ᐊ | Left button of the middle face cluster |
| Xbox One | View ⧉ | Left button of the middle face cluster |
Sourcepub const PadLThumbPress: VK
pub const PadLThumbPress: VK
| Controller | When |
|---|---|
| Xbox 360 | Pressing the left thumbstick into the controller |
| Xbox One | Pressing the left thumbstick into the controller |
Sourcepub const PadRThumbPress: VK
pub const PadRThumbPress: VK
| Controller | When |
|---|---|
| Xbox 360 | Pressing the right thumbstick into the controller |
| Xbox One | Pressing the right thumbstick into the controller |
Sourcepub const PadLThumbUp: VK
pub const PadLThumbUp: VK
Moved the upper left thumbstick up.
Sourcepub const PadLThumbDown: VK
pub const PadLThumbDown: VK
Moved the upper left thumbstick down.
Sourcepub const PadLThumbRight: VK
pub const PadLThumbRight: VK
Moved the upper left thumbstick right.
Sourcepub const PadLThumbLeft: VK
pub const PadLThumbLeft: VK
Moved the upper left thumbstick left.
Sourcepub const PadLThumbUpLeft: VK
pub const PadLThumbUpLeft: VK
Moved the upper left thumbstick up and left.
Sourcepub const PadLThumbUpRight: VK
pub const PadLThumbUpRight: VK
Moved the upper left thumbstick up and right.
Sourcepub const PadLThumbDownRight: VK
pub const PadLThumbDownRight: VK
Moved the upper left thumbstick down and right.
Sourcepub const PadLThumbDownLeft: VK
pub const PadLThumbDownLeft: VK
Moved the upper left thumbstick and left.
Sourcepub const PadRThumbUp: VK
pub const PadRThumbUp: VK
Moved the right thumbstick up.
Sourcepub const PadRThumbDown: VK
pub const PadRThumbDown: VK
Moved the right thumbstick down.
Sourcepub const PadRThumbRight: VK
pub const PadRThumbRight: VK
Moved the right thumbstick right.
Sourcepub const PadRThumbLeft: VK
pub const PadRThumbLeft: VK
Moved the right thumbstick left.
Sourcepub const PadRThumbUpLeft: VK
pub const PadRThumbUpLeft: VK
Moved the right thumbstick up and left.
Sourcepub const PadRThumbUpRight: VK
pub const PadRThumbUpRight: VK
Moved the right thumbstick up and right.
Sourcepub const PadRThumbDownRight: VK
pub const PadRThumbDownRight: VK
Moved the right thumbstick down and right.
Sourcepub const PadRThumbDownLeft: VK
pub const PadRThumbDownLeft: VK
Moved the right thumbstick down and left.
Trait Implementations§
Source§impl Ord for VK
impl Ord for VK
Source§impl PartialOrd for VK
impl PartialOrd for VK
impl Copy for VK
impl Eq for VK
impl Pod for VK
impl StructuralPartialEq for VK
Auto Trait Implementations§
impl Freeze for VK
impl RefUnwindSafe for VK
impl Send for VK
impl Sync for VK
impl Unpin for VK
impl UnwindSafe for VK
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.