Struct fermium::gamecontroller::SDL_GameControllerAxis
source · #[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
sourceimpl Clone for SDL_GameControllerAxis
impl Clone for SDL_GameControllerAxis
sourcefn clone(&self) -> SDL_GameControllerAxis
fn clone(&self) -> SDL_GameControllerAxis
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SDL_GameControllerAxis
impl Debug for SDL_GameControllerAxis
sourceimpl Default for SDL_GameControllerAxis
impl Default for SDL_GameControllerAxis
sourcefn default() -> SDL_GameControllerAxis
fn default() -> SDL_GameControllerAxis
Returns the “default value” for a type. Read more
sourceimpl Hash for SDL_GameControllerAxis
impl Hash for SDL_GameControllerAxis
sourceimpl Ord for SDL_GameControllerAxis
impl Ord for SDL_GameControllerAxis
sourcefn cmp(&self, other: &SDL_GameControllerAxis) -> Ordering
fn cmp(&self, other: &SDL_GameControllerAxis) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SDL_GameControllerAxis> for SDL_GameControllerAxis
impl PartialEq<SDL_GameControllerAxis> for SDL_GameControllerAxis
sourcefn eq(&self, other: &SDL_GameControllerAxis) -> bool
fn eq(&self, other: &SDL_GameControllerAxis) -> bool
sourceimpl PartialOrd<SDL_GameControllerAxis> for SDL_GameControllerAxis
impl PartialOrd<SDL_GameControllerAxis> for SDL_GameControllerAxis
sourcefn partial_cmp(&self, other: &SDL_GameControllerAxis) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_GameControllerAxis) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SDL_GameControllerAxis
impl Eq for SDL_GameControllerAxis
impl StructuralEq for SDL_GameControllerAxis
impl StructuralPartialEq for SDL_GameControllerAxis
Auto Trait Implementations
impl RefUnwindSafe for SDL_GameControllerAxis
impl Send for SDL_GameControllerAxis
impl Sync for SDL_GameControllerAxis
impl Unpin for SDL_GameControllerAxis
impl UnwindSafe for SDL_GameControllerAxis
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more