Enum input_actions::source::Button
source · [−]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 StructuralEq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more