Method: Mittsu::GLFW::Window#joystick_buttons

Defined in:
lib/mittsu/renderers/glfw_window.rb

#joystick_buttons(joystick = GLFW_JOYSTICK_1) ⇒ Object



148
149
150
151
# File 'lib/mittsu/renderers/glfw_window.rb', line 148

def joystick_buttons(joystick = GLFW_JOYSTICK_1)
  @joystick_buttons = poll_all_joysticks_buttons
  @joystick_buttons[joystick]
end