Check Linux joystick init on Wayland and Mir

master
Camilla Berglund ago%!(EXTRA string=10 years)
parent 7fec7a0569
commit 2b52008405
  1. 8
      src/mir_init.c
  2. 4
      src/wl_init.c

@ -185,11 +185,13 @@ int _glfwPlatformInit(void)
if (!_glfwInitEGL())
return GLFW_FALSE;
// Need the default conf for when we set a NULL cursor
_glfw.mir.default_conf = mir_cursor_configuration_from_name(mir_arrow_cursor_name);
if (!_glfwInitJoysticksLinux())
return GLFW_FALSE;
_glfwInitTimerPOSIX();
_glfwInitJoysticksLinux();
// Need the default conf for when we set a NULL cursor
_glfw.mir.default_conf = mir_cursor_configuration_from_name(mir_arrow_cursor_name);
_glfw.mir.event_queue = calloc(1, sizeof(EventQueue));
_glfwInitEventQueueMir(_glfw.mir.event_queue);

@ -587,8 +587,10 @@ int _glfwPlatformInit(void)
if (!_glfwInitEGL())
return GLFW_FALSE;
if (!_glfwInitJoysticksLinux())
return GLFW_FALSE;
_glfwInitTimerPOSIX();
_glfwInitJoysticksLinux();
if (_glfw.wl.pointer && _glfw.wl.shm)
{

Loading…
Cancel
Save