pub enum Button {
Show 19 variants
FaceBottom,
FaceLeft,
FaceRight,
FaceTop,
VirtualConfirm,
VirtualDeny,
LThumbstick,
RThumbstick,
DPadUp,
DPadDown,
DPadLeft,
DPadRight,
LShoulder,
RShoulder,
LTrigger,
RTrigger,
Special,
LSpecial,
RSpecial,
}
Variants§
FaceBottom
The bottom button in the face-diamond.
- PS4: X
- Xbox: A
- Switch: B
FaceLeft
The left button in the face-diamond.
- PS4: Square
- Xbox: X
- Switch: Y
FaceRight
The right button in the face-diamond.
- PS4: Circle
- Xbox: B
- Switch: A
FaceTop
The top button in the face-diamond.
- PS4: Triangle
- Xbox: Y
- Switch: X
VirtualConfirm
The button used for confirmation/approval. This is a virtual wrapper based on the console.
- PS4 case 1:
X (Bottom)
- Xbox:
A (Bottom)
- PS4 case 2:
Circle (Right)
- Switch:
A (Right)
VirtualDeny
The button used for confirmation/approval. This is a virtual wrapper based on the console.
- PS4 case 1:
Circle (Right)
- Xbox:
B (Right)
- PS4 case 2:
X (Bottom)
- Switch:
B (Bottom)
LThumbstick
Pressing in on the left thumbstick
RThumbstick
Pressing in on the right thumbstick
DPadUp
DPadDown
DPadLeft
DPadRight
LShoulder
RShoulder
LTrigger
RTrigger
Special
- PS4: Trackpad
- Xbox: Home/Xbox
- Switch: Home
LSpecial
- PS4: Share
- Xbox: Share/Windows
- Switch: Minus
RSpecial
- PS4: Options
- Xbox: Hamburder
- Switch: Plus
Trait Implementations§
impl Copy for Button
impl Eq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl Freeze for Button
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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
Mutably borrows from an owned value. Read more