pub struct GamePad<const PLAYER: u8> {
pub buttons: AddressMem<GamePadButtons>,
}
Fields§
Trait Implementations§
source§impl From<GamePad<0>> for GamePadEnum
impl From<GamePad<0>> for GamePadEnum
source§fn from(v: GamePad<0>) -> GamePadEnum
fn from(v: GamePad<0>) -> GamePadEnum
Converts to this type from the input type.
source§impl From<GamePad<1>> for GamePadEnum
impl From<GamePad<1>> for GamePadEnum
source§fn from(v: GamePad<1>) -> GamePadEnum
fn from(v: GamePad<1>) -> GamePadEnum
Converts to this type from the input type.
source§impl From<GamePad<2>> for GamePadEnum
impl From<GamePad<2>> for GamePadEnum
source§fn from(v: GamePad<2>) -> GamePadEnum
fn from(v: GamePad<2>) -> GamePadEnum
Converts to this type from the input type.
source§impl From<GamePad<3>> for GamePadEnum
impl From<GamePad<3>> for GamePadEnum
source§fn from(v: GamePad<3>) -> GamePadEnum
fn from(v: GamePad<3>) -> GamePadEnum
Converts to this type from the input type.
source§impl<const PLAYER: u8> GamePadTrait for GamePad<PLAYER>
impl<const PLAYER: u8> GamePadTrait for GamePad<PLAYER>
fn all_pressed(&self, buttons: GamePadButtons) -> bool
fn any_pressed(&self, buttons: GamePadButtons) -> bool
fn is_any_pressed(&self) -> bool
fn just_pressed( &mut self, b: Button, hold: Option<Ticks>, period: Option<Ticks> ) -> bool
source§impl TryInto<GamePad<0>> for GamePadEnum
impl TryInto<GamePad<0>> for GamePadEnum
source§impl TryInto<GamePad<1>> for GamePadEnum
impl TryInto<GamePad<1>> for GamePadEnum
source§impl TryInto<GamePad<2>> for GamePadEnum
impl TryInto<GamePad<2>> for GamePadEnum
Auto Trait Implementations§
impl<const PLAYER: u8> RefUnwindSafe for GamePad<PLAYER>
impl<const PLAYER: u8> !Send for GamePad<PLAYER>
impl<const PLAYER: u8> !Sync for GamePad<PLAYER>
impl<const PLAYER: u8> Unpin for GamePad<PLAYER>
impl<const PLAYER: u8> UnwindSafe for GamePad<PLAYER>
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