pub struct ControllerInit {Show 21 fields
pub a: bool,
pub b: bool,
pub x: bool,
pub y: bool,
pub up: bool,
pub down: bool,
pub left: bool,
pub right: bool,
pub start: bool,
pub select: bool,
pub guide: bool,
pub left_shoulder: bool,
pub right_shoulder: bool,
pub left_stick: bool,
pub right_stick: bool,
pub left_stick_x: f32,
pub left_stick_y: f32,
pub right_stick_x: f32,
pub right_stick_y: f32,
pub left_trigger: f32,
pub right_trigger: f32,
}Expand description
Structure for initializing a controller
Fields§
§a: bool§b: bool§x: bool§y: bool§up: bool§down: bool§left: bool§right: bool§start: bool§select: bool§guide: bool§left_shoulder: bool§right_shoulder: bool§left_stick: bool§right_stick: bool§left_stick_x: f32§left_stick_y: f32§right_stick_x: f32§right_stick_y: f32§left_trigger: f32§right_trigger: f32Trait Implementations§
Source§impl Clone for ControllerInit
impl Clone for ControllerInit
Source§fn clone(&self) -> ControllerInit
fn clone(&self) -> ControllerInit
Returns a duplicate 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 Default for ControllerInit
impl Default for ControllerInit
Source§fn default() -> ControllerInit
fn default() -> ControllerInit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ControllerInit
impl<'de> Deserialize<'de> for ControllerInit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ControllerInit
impl RefUnwindSafe for ControllerInit
impl Send for ControllerInit
impl Sync for ControllerInit
impl Unpin for ControllerInit
impl UnwindSafe for ControllerInit
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