pub struct GamecubeInput {Show 18 fields
pub start: bool,
pub a: bool,
pub b: bool,
pub x: bool,
pub y: bool,
pub z: bool,
pub dpad_up: bool,
pub dpad_down: bool,
pub dpad_left: bool,
pub dpad_right: bool,
pub l_digital: bool,
pub r_digital: bool,
pub stick_x: u8,
pub stick_y: u8,
pub cstick_x: u8,
pub cstick_y: u8,
pub l_analog: u8,
pub r_analog: u8,
}
Expand description
Specify the button and stick inputs to be provided to a gamecube compatible device.
Fields§
§start: bool
§a: bool
§b: bool
§x: bool
§y: bool
§z: bool
§dpad_up: bool
§dpad_down: bool
§dpad_left: bool
§dpad_right: bool
§l_digital: bool
§r_digital: bool
§stick_x: u8
§stick_y: u8
§cstick_x: u8
§cstick_y: u8
§l_analog: u8
§r_analog: u8
Auto Trait Implementations§
impl Freeze for GamecubeInput
impl RefUnwindSafe for GamecubeInput
impl Send for GamecubeInput
impl Sync for GamecubeInput
impl Unpin for GamecubeInput
impl UnwindSafe for GamecubeInput
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more