#[repr(C)]
pub enum Axis {
X,
Y,
Z,
R,
U,
V,
PovX,
PovY,
}
Expand description
Axes supported by SFML joysticks
Variants
X
The X axis.
Y
The Y axis.
Z
The Z axis.
R
The R axis.
U
The U axis.
V
The V axis.
PovX
The X axis of the point-of-view hat.
PovY
The Y axis of the point-of-view hat.
Trait Implementations
sourceimpl Clone for JoystickAxis
impl Clone for JoystickAxis
sourcefn clone(&self) -> JoystickAxis
fn clone(&self) -> JoystickAxis
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 JoystickAxis
impl Debug for JoystickAxis
sourceimpl Hash for JoystickAxis
impl Hash for JoystickAxis
sourceimpl Ord for JoystickAxis
impl Ord for JoystickAxis
sourcefn cmp(&self, other: &JoystickAxis) -> Ordering
fn cmp(&self, other: &JoystickAxis) -> 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<JoystickAxis> for JoystickAxis
impl PartialEq<JoystickAxis> for JoystickAxis
sourcefn eq(&self, other: &JoystickAxis) -> bool
fn eq(&self, other: &JoystickAxis) -> bool
sourceimpl PartialOrd<JoystickAxis> for JoystickAxis
impl PartialOrd<JoystickAxis> for JoystickAxis
sourcefn partial_cmp(&self, other: &JoystickAxis) -> Option<Ordering>
fn partial_cmp(&self, other: &JoystickAxis) -> 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 JoystickAxis
impl Eq for JoystickAxis
impl StructuralEq for JoystickAxis
impl StructuralPartialEq for JoystickAxis
Auto Trait Implementations
impl RefUnwindSafe for JoystickAxis
impl Send for JoystickAxis
impl Sync for JoystickAxis
impl Unpin for JoystickAxis
impl UnwindSafe for JoystickAxis
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