Struct macroquad_virtual_joystick::JoystickDirectionalEvent[][src]

pub struct JoystickDirectionalEvent {
    pub direction: JoystickDirection,
    pub intensity: f32,
    pub angle: f32,
}

the event of the Joystick

call Joystick::update to get the current event

Fields

direction: JoystickDirection

the direction to which the knob was moved

intensity: f32

the intensity of the knob move, from 0 (center) to 1 (edge)

angle: f32

the angle of the knob (in radians)

starting on the positive x-axis and rotating counter-clockwise

Trait Implementations

impl Clone for JoystickDirectionalEvent[src]

impl Copy for JoystickDirectionalEvent[src]

impl Debug for JoystickDirectionalEvent[src]

impl Default for JoystickDirectionalEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.