Struct fermium::gamecontroller::SDL_GameControllerAxis [−][src]
#[repr(transparent)]pub struct SDL_GameControllerAxis(pub i32);
Expand description
The list of axes available from a controller
Thumbstick axis values range from SDL_JOYSTICK_AXIS_MIN
to
SDL_JOYSTICK_AXIS_MAX
, and are centered within ~8000 of zero, though
advanced UI will allow users to set or auto-detect the dead zone, which
varies between controllers.
Trigger axis values range from 0 to SDL_JOYSTICK_AXIS_MAX
.
Tuple Fields
0: i32
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more