[−][src]Struct tge::gamepad::GamepadDevice
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
impl !RefUnwindSafe for GamepadDevice
impl !Send for GamepadDevice
impl !Sync for GamepadDevice
impl Unpin for GamepadDevice
impl !UnwindSafe for GamepadDevice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,