pub struct Joystick { /* private fields */ }
Implementations
sourceimpl Joystick
impl Joystick
pub fn new(core: &Core, idx: i32) -> Result<Joystick, ()>
pub fn is_active(&self) -> bool
pub fn get_name(&self) -> Result<String, ()>
pub fn get_num_sticks(&self) -> i32
pub fn get_stick_flags(&self, stick: i32) -> StickFlags
pub fn get_stick_name(&self, stick: i32) -> Result<String, ()>
pub fn get_num_axes(&self, stick: i32) -> i32
pub fn get_axis_name(&self, stick: i32, axis: i32) -> Result<String, ()>
pub fn get_allegro_joystick(&self) -> *mut ALLEGRO_JOYSTICK
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more