Struct allegro::Joystick [] [src]

pub struct Joystick {
    // some fields omitted
}

Methods

impl Joystick
[src]

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

fn is_active(&self) -> bool

fn get_name(&self) -> Result<String()>

fn get_num_sticks(&self) -> i32

fn get_stick_flags(&self, stick: i32) -> StickFlags

fn get_stick_name(&self, stick: i32) -> Result<String()>

fn get_num_axes(&self, stick: i32) -> i32

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

fn get_num_buttons(&self) -> i32

fn get_button_name(&self, button: i32) -> Result<String()>

fn get_allegro_joystick(&self) -> *mut ALLEGRO_JOYSTICK