Struct libsm64::MarioInput [−][src]
pub struct MarioInput {
pub cam_look_x: f32,
pub cam_look_z: f32,
pub stick_x: f32,
pub stick_y: f32,
pub button_a: bool,
pub button_b: bool,
pub button_z: bool,
}
Expand description
The input for a frame of Mario’s logic
Fields
cam_look_x: f32
The position of the camera on the x-axis, used to adjust the movement of mario based on his postion relative to the camera
cam_look_z: f32
The position of the camera on the z-axis, used to adjust the movement of mario based on his postion relative to the camera
stick_x: f32
The input of the analog control on the x-axis (-1.0..1.0)
stick_y: f32
The input of the analog control on the y-axis (-1.0..1.0)
Is the A button pressed
Is the B button pressed
Is the Z button pressed
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for MarioInput
impl Send for MarioInput
impl Sync for MarioInput
impl Unpin for MarioInput
impl UnwindSafe for MarioInput
Blanket Implementations
Mutably borrows from an owned value. Read more