pub enum GamepadButton {
Show 14 variants
South,
East,
West,
North,
LeftBumper,
RightBumper,
LeftStick,
RightStick,
Start,
Select,
DPadUp,
DPadDown,
DPadLeft,
DPadRight,
}Expand description
Gamepad button
Variants§
South
A button (Xbox) / Cross (PlayStation)
East
B button (Xbox) / Circle (PlayStation)
West
X button (Xbox) / Square (PlayStation)
North
Y button (Xbox) / Triangle (PlayStation)
LeftBumper
Left bumper/shoulder
RightBumper
Right bumper/shoulder
LeftStick
Left stick press
RightStick
Right stick press
Start
Start/Options
Select
Select/Share
DPadUp
D-pad up
DPadDown
D-pad down
DPadLeft
D-pad left
DPadRight
D-pad right
Trait Implementations§
Source§impl Clone for GamepadButton
impl Clone for GamepadButton
Source§fn clone(&self) -> GamepadButton
fn clone(&self) -> GamepadButton
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GamepadButton
impl Debug for GamepadButton
Source§impl<'de> Deserialize<'de> for GamepadButton
impl<'de> Deserialize<'de> for GamepadButton
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for GamepadButton
impl Hash for GamepadButton
Source§impl PartialEq for GamepadButton
impl PartialEq for GamepadButton
Source§impl Serialize for GamepadButton
impl Serialize for GamepadButton
impl Copy for GamepadButton
impl Eq for GamepadButton
impl StructuralPartialEq for GamepadButton
Auto Trait Implementations§
impl Freeze for GamepadButton
impl RefUnwindSafe for GamepadButton
impl Send for GamepadButton
impl Sync for GamepadButton
impl Unpin for GamepadButton
impl UnwindSafe for GamepadButton
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