Struct sdl::joy::Joystick
[−]
[src]
pub struct Joystick { pub raw: *mut SDL_Joystick, }
Fields
raw: *mut SDL_Joystick
Methods
impl Joystick
[src]
fn open(index: isize) -> Result<Joystick, String>
fn get_index(&self) -> isize
fn get_num_axes(&self) -> isize
fn get_num_balls(&self) -> isize
fn get_num_hats(&self) -> isize
fn get_axis(&self, axis: isize) -> i16
fn get_hat(&self, hat: isize) -> u8
fn get_ball(&self, ball: isize) -> (isize, isize)
Trait Implementations
impl PartialEq for Joystick
[src]
fn eq(&self, __arg_0: &Joystick) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Joystick) -> bool
This method tests for !=
.