Struct allegro::joystick::Joystick [−][src]
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]
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,
pub 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, 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.
pub 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>,