[][src]Struct tge::gamepad::GamepadDevice

pub struct GamepadDevice { /* fields omitted */ }

Implementations

impl GamepadDevice[src]

pub fn id(&self) -> GamepadId[src]

pub fn name(&self) -> &str[src]

pub fn uuid(&self) -> [u8; 16][src]

pub fn is_force_feedback_supported(&self) -> bool[src]

pub fn power_info(&self) -> PowerInfo[src]

pub fn is_connected(&self) -> bool[src]

pub fn is_button_down(&self, button: GamepadButton) -> bool[src]

pub fn is_button_hold(&self, button: GamepadButton) -> bool[src]

pub fn is_button_up(&self, button: GamepadButton) -> bool[src]

pub fn button_value(&self, button: GamepadButton) -> f32[src]

pub fn axis_value(&self, axis: GamepadAxis) -> f32[src]

Trait Implementations

impl PartialEq<GamepadDevice> for GamepadDevice[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.