Enum tic80::GamePadEnum
source · pub enum GamePadEnum {
GamePad0(GamePad<0>),
GamePad1(GamePad<1>),
GamePad2(GamePad<2>),
GamePad3(GamePad<3>),
}
Variants§
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 GamePadTrait for GamePadEnum
impl GamePadTrait for GamePadEnum
fn all_pressed(&self, __enum_dispatch_arg_0: GamePadButtons) -> bool
fn any_pressed(&self, __enum_dispatch_arg_0: GamePadButtons) -> bool
fn is_any_pressed(&self) -> bool
fn just_pressed( &mut self, __enum_dispatch_arg_0: Button, __enum_dispatch_arg_1: Option<Ticks>, __enum_dispatch_arg_2: 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 RefUnwindSafe for GamePadEnum
impl !Send for GamePadEnum
impl !Sync for GamePadEnum
impl Unpin for GamePadEnum
impl UnwindSafe for GamePadEnum
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