Struct glfw::Joystick [] [src]

pub struct Joystick {
    pub id: JoystickId,
    pub glfw: Glfw,
}

A joystick handle.

Fields

id: JoystickId glfw: Glfw

Methods

impl Joystick
[src]

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) -> String

Wrapper for glfwGetJoystickName.

Trait Implementations

impl Clone for Joystick
[src]

fn clone(&self) -> Joystick

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Joystick
[src]