Struct glfw::Joystick[src]
pub struct Joystick { pub id: JoystickId, pub glfw: Glfw, }
A joystick handle.
Fields
id | |
glfw |
Methods
impl Joystick
fn is_present(&self) -> bool
Wrapper for glfwJoystickPresent
.
fn get_axes(&self) -> Vec<f32>
Wrapper for glfwGetJoystickAxes
.
fn get_buttons(&self) -> Vec<c_int>
Wrapper for glfwGetJoystickButtons
.
fn get_name(&self) -> ~str
Wrapper for glfwGetJoystickName
.