Revert "Linux: Fix slow startup on some systems caused by GLFW searching for joysticks. Since kitty does not use joysticks, disable joystick support."

This reverts commit ab960ea12d.
This commit is contained in:
Luflosi
2020-07-23 13:32:52 +02:00
parent 1bb6242020
commit 78efefcea1
8 changed files with 7 additions and 21 deletions

4
glfw/init.c vendored
View File

@@ -55,7 +55,6 @@ static _GLFWinitconfig _glfwInitHints =
true, // hat buttons
GLFW_ANGLE_PLATFORM_TYPE_NONE, // ANGLE backend
false, // debug keyboard
true, // enable joystick
{
true, // macOS menu bar
true // macOS bundle chdir
@@ -276,9 +275,6 @@ GLFWAPI void glfwInitHint(int hint, int value)
{
switch (hint)
{
case GLFW_ENABLE_JOYSTICKS:
_glfwInitHints.enableJoysticks = value;
return;
case GLFW_JOYSTICK_HAT_BUTTONS:
_glfwInitHints.hatButtons = value;
return;