Name
glfw.GetJoystickButtons -- get states of all joystick buttons (V1.1)
Synopsis
t, count = glfw.GetJoystickButtons(port)
Function
This function returns the states of all buttons of the specified joystick in a table. Each element in the table is either True if the button is pressed or False if it isn't pressed. The port argument must be set to a valid joystick identifier between #GLFW_JOYSTICK_1 and #GLFW_JOYSTICK_16.

Inputs
port
the joystick port to query
Results
t
table containing button states
count
number of entries in table

Show TOC