Enum wasm4_sx::GamepadIndex
source · #[repr(u8)]pub enum GamepadIndex {
I1,
I2,
I3,
I4,
}
Expand description
Gamepad index.
Variants§
Implementations§
source§impl GamepadIndex
impl GamepadIndex
sourcepub fn all() -> [GamepadIndex; 4]
pub fn all() -> [GamepadIndex; 4]
Get all gamepad indices.
Trait Implementations§
source§impl Clone for GamepadIndex
impl Clone for GamepadIndex
source§fn clone(&self) -> GamepadIndex
fn clone(&self) -> GamepadIndex
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 moreimpl Copy for GamepadIndex
Auto Trait Implementations§
impl RefUnwindSafe for GamepadIndex
impl Send for GamepadIndex
impl Sync for GamepadIndex
impl Unpin for GamepadIndex
impl UnwindSafe for GamepadIndex
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