You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I plug in a joystick into the computer before I call the glfwInit function (for example I plug in before I start the application), GLFW doesn't assign a gamepad mapping to my joystick. If I'm correct, this is because in the function glfwInit, it detects the already connected joysticks in function _glfwPlatformInit, and after that it initializes the gamepad mappings in function _glfwInitGamepadMappings. This means that function findMapping won't find a mapping to any already connected joysticks. There are no errors and the joystick functions work, only the gamepad related functions don't. If I disconnect and then reconnect my joystick, it works fine.
I use GLFW 3.3.5, Windows 10 (19043) and I tested with 2 different joysticks, but based on the code it only depends on the order of the function calls and not on the different joysticks or operating systems.
The text was updated successfully, but these errors were encountered:
Joysticks already connected when GLFW was initalized did not get gamepad
mappings applied to them.
Regression introduced by 74a8ba2.
This change was backported without taking into account that 3.3.x does
not have on-demand joystick init.
Fixes#1996
Thank you for reporting this! It should be fixed now with bfd9eaf. This was a bug and fix specific to the 3.3-stable branch. Will do a 3.3.6 release as soon as possible.
Joysticks already connected when GLFW was initalized did not get gamepad
mappings applied to them.
Regression introduced by 74a8ba2.
This change was backported without taking into account that 3.3.x does
not have on-demand joystick init.
Fixesglfw#1996
If I plug in a joystick into the computer before I call the glfwInit function (for example I plug in before I start the application), GLFW doesn't assign a gamepad mapping to my joystick. If I'm correct, this is because in the function glfwInit, it detects the already connected joysticks in function _glfwPlatformInit, and after that it initializes the gamepad mappings in function _glfwInitGamepadMappings. This means that function findMapping won't find a mapping to any already connected joysticks. There are no errors and the joystick functions work, only the gamepad related functions don't. If I disconnect and then reconnect my joystick, it works fine.
I use GLFW 3.3.5, Windows 10 (19043) and I tested with 2 different joysticks, but based on the code it only depends on the order of the function calls and not on the different joysticks or operating systems.
The text was updated successfully, but these errors were encountered: