Enum wasm4_sx::GamepadButton
source · pub enum GamepadButton {
X,
Z,
Left,
Right,
Up,
Down,
}
Expand description
Gamepad button.
Variants§
Trait Implementations§
source§impl Clone for GamepadButton
impl Clone for GamepadButton
source§fn clone(&self) -> GamepadButton
fn clone(&self) -> GamepadButton
Returns a copy 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 From<GamepadButton> for u8
impl From<GamepadButton> for u8
source§fn from(value: GamepadButton) -> Self
fn from(value: GamepadButton) -> Self
Converts to this type from the input type.
source§impl From<u8> for GamepadButton
impl From<u8> for GamepadButton
impl Copy for GamepadButton
Auto Trait Implementations§
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