Struct allegro::joystick::Joystick[][src]

pub struct Joystick { /* fields omitted */ }

Implementations

impl Joystick[src]

pub fn new(core: &Core, idx: i32) -> Result<Joystick, ()>[src]

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

pub fn get_name(&self) -> Result<String, ()>[src]

pub fn get_num_sticks(&self) -> i32[src]

pub fn get_stick_flags(&self, stick: i32) -> StickFlags[src]

pub fn get_stick_name(&self, stick: i32) -> Result<String, ()>[src]

pub fn get_num_axes(&self, stick: i32) -> i32[src]

pub fn get_axis_name(&self, stick: i32, axis: i32) -> Result<String, ()>[src]

pub fn get_num_buttons(&self) -> i32[src]

pub fn get_button_name(&self, button: i32) -> Result<String, ()>[src]

pub fn get_allegro_joystick(&self) -> *mut ALLEGRO_JOYSTICK[src]

Auto Trait Implementations

impl RefUnwindSafe for Joystick

impl !Send for Joystick

impl !Sync for Joystick

impl Unpin for Joystick

impl UnwindSafe for Joystick

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, 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.