#[repr(C)]pub enum GamepadAxis {
LeftX = 0,
LeftY = 1,
RightX = 2,
RightY = 3,
LeftTrigger = 4,
RightTrigger = 5,
}
Expand description
Gamepad axis
Variants§
LeftX = 0
Gamepad left stick X axis
LeftY = 1
Gamepad left stick Y axis
RightX = 2
Gamepad right stick X axis
RightY = 3
Gamepad right stick Y axis
LeftTrigger = 4
Gamepad back trigger left, pressure level: [1..-1]
RightTrigger = 5
Gamepad back trigger right, pressure level: [1..-1]
Trait Implementations§
Source§impl Clone for GamepadAxis
impl Clone for GamepadAxis
Source§fn clone(&self) -> GamepadAxis
fn clone(&self) -> GamepadAxis
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GamepadAxis
impl Debug for GamepadAxis
Source§impl Hash for GamepadAxis
impl Hash for GamepadAxis
Source§impl PartialEq for GamepadAxis
impl PartialEq for GamepadAxis
impl Copy for GamepadAxis
impl Eq for GamepadAxis
impl StructuralPartialEq for GamepadAxis
Auto Trait Implementations§
impl Freeze for GamepadAxis
impl RefUnwindSafe for GamepadAxis
impl Send for GamepadAxis
impl Sync for GamepadAxis
impl Unpin for GamepadAxis
impl UnwindSafe for GamepadAxis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more