Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Apr 19, 2023
1 parent d6639d0 commit a8cd997
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,22 @@ pub enum VirtualJoystickEventType {
// EventReader
struct VirtualJoystickEvent {
/// Get ID of joystick throw event
pub fn id(&self) -> S;
pub fn id() -> S;

/// Return the Type of Joystick Event
pub fn get_type(&self) -> VirtualJoystickEventType;
pub fn get_type() -> VirtualJoystickEventType;

/// Raw position of point (Mouse or Touch)
pub fn value(&self) -> Vec2;
pub fn value() -> Vec2;

/// Axis of Joystick see [crate::VirtualJoystickAxis]
pub fn direction(&self) -> VirtualJoystickAxis;
pub fn direction() -> VirtualJoystickAxis;

/// Delta value ranging from 0 to 1 in each vector (x and y)
pub fn axis(&self) -> Vec2;
pub fn axis() -> Vec2;

/// Delta value snaped
pub fn snap_axis(&self) -> Vec2;
pub fn snap_axis(dead_zone: Option<f32>) -> Vec2;
}

// Bundle to spawn
Expand Down

0 comments on commit a8cd997

Please sign in to comment.