parent
8fbd42d592
commit
7e5eff8a29
1 changed files with 1 additions and 5 deletions
|
@ -1120,11 +1120,7 @@ void PollInputEvents(void)
|
||||||
// NOTE: We do it here in case of disconnection
|
// NOTE: We do it here in case of disconnection
|
||||||
for (int i = 0; i < MAX_GAMEPADS; i++)
|
for (int i = 0; i < MAX_GAMEPADS; i++)
|
||||||
{
|
{
|
||||||
if (glfwJoystickPresent(i))
|
if (glfwJoystickPresent(i)) CORE.Input.Gamepad.ready[i] = true;
|
||||||
{
|
|
||||||
CORE.Input.Gamepad.ready[i] = true;
|
|
||||||
strcpy(CORE.Input.Gamepad.name[i], glfwGetJoystickName(i));
|
|
||||||
}
|
|
||||||
else CORE.Input.Gamepad.ready[i] = false;
|
else CORE.Input.Gamepad.ready[i] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue