Fix bug
This commit is contained in:
parent
659f89ea85
commit
d957c40649
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ static void JoystickCallback(int joystick_id, int event)
|
|||
if (!joystick_connected)
|
||||
{
|
||||
int total_axis;
|
||||
const float *axis = glfwGetJoystickAxes(connected_joystick_id, &total_axis);
|
||||
const float *axis = glfwGetJoystickAxes(joystick_id, &total_axis);
|
||||
|
||||
if (total_axis >= 2)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue