Struct macroquad_virtual_joystick::JoystickEvent [−][src]
pub struct JoystickEvent { pub direction: JoystickDirection, pub intensity: f32, pub angle: f32, }
Expand description
the event of the Joystick
call Joystick::update
to get the current event
Fields
direction: JoystickDirection
Expand description
the direction to which the knob was moved
intensity: f32
Expand description
the intensity of the knob move, from 0 (center) to 1 (edge)
angle: f32
Expand description
the angle of the knob (in radians)
starting on the positive x-axis and rotating counter-clockwise
Trait Implementations
impl Clone for JoystickEvent
[src]
impl Clone for JoystickEvent
[src]fn clone(&self) -> JoystickEvent
[src]
fn clone(&self) -> JoystickEvent
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for JoystickEvent
[src]
impl Debug for JoystickEvent
[src]impl Default for JoystickEvent
[src]
impl Default for JoystickEvent
[src]impl Copy for JoystickEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for JoystickEvent
impl Send for JoystickEvent
impl Sync for JoystickEvent
impl Unpin for JoystickEvent
impl UnwindSafe for JoystickEvent
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more