pub enum PadButton {
Show 15 variants
South,
East,
West,
North,
LeftShoulder,
RightShoulder,
LeftStick,
RightStick,
Start,
Select,
DpadUp,
DpadDown,
DpadLeft,
DpadRight,
Guide,
}Expand description
A pad button, by position — see the module docs.
Variants§
South
The bottom face button: A (Xbox), Cross (PlayStation), B (Nintendo).
East
The right face button: B (Xbox), Circle (PlayStation), A (Nintendo).
West
The left face button: X (Xbox), Square (PlayStation), Y (Nintendo).
North
The top face button: Y (Xbox), Triangle (PlayStation), X (Nintendo).
LeftShoulder
The left bumper: LB, L1, L.
RightShoulder
The right bumper: RB, R1, R.
LeftStick
The left stick pressed in: LS, L3.
RightStick
The right stick pressed in: RS, R3.
Start
The right centre button: Menu, Options, +.
Select
The left centre button: View, Share/Create, −.
DpadUp
The d-pad’s up.
DpadDown
The d-pad’s down.
DpadLeft
The d-pad’s left.
DpadRight
The d-pad’s right.
Guide
The logo button: Xbox, PS, Home. Many platforms keep it for themselves, so a backend that never sees it never reports it.
Implementations§
Trait Implementations§
impl Copy for PadButton
impl Eq for PadButton
Source§impl FromIterator<PadButton> for PadButtons
impl FromIterator<PadButton> for PadButtons
impl StructuralPartialEq for PadButton
Auto Trait Implementations§
impl Freeze for PadButton
impl RefUnwindSafe for PadButton
impl Send for PadButton
impl Sync for PadButton
impl Unpin for PadButton
impl UnsafeUnpin for PadButton
impl UnwindSafe for PadButton
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