Enum amethyst_input::ControllerButton
source · pub enum ControllerButton {
Show 15 variants
A,
B,
X,
Y,
DPadDown,
DPadLeft,
DPadRight,
DPadUp,
LeftShoulder,
RightShoulder,
LeftStick,
RightStick,
Back,
Start,
Guide,
}
Expand description
Controller buttons matching SDL controller model
Variants
A
The A button, typically the lower button in the “diamond” of buttons on the right side of the controller.
B
The B button, typically the right button in the “diamond” of buttons on the right side of the controller.
X
The X button, typically the left button in the “diamond” of buttons on the right side of the controller.
Y
The Y button, typically the top button in the “diamond” of buttons on the right side of the controller.
DPadDown
The dpad button pointed towards the player
DPadLeft
The dpad button pointed to the player’s left
DPadRight
The dpad button pointed to the player’s right
DPadUp
The dpad button pointed away from the player.
LeftShoulder
The digital left shoulder bumper. Usually located above the left trigger.
RightShoulder
The digital right shoulder bumper. Usually located above the right trigger.
LeftStick
If your press the left analog stick into the controller this button is pressed.
RightStick
If your press the right analog stick into the controller this button is pressed.
Back
The back button is typically a button slightly left of center with a leftward arrow on it.
Start
The start button is typically a button slightly right of center with a rightward arrow on it.
Guide
The centermost button on the controller. Large and green on an Xbox controller.
Trait Implementations
sourceimpl Clone for ControllerButton
impl Clone for ControllerButton
sourcefn clone(&self) -> ControllerButton
fn clone(&self) -> ControllerButton
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more