Skip to content

Commit

Permalink
gui: disable joystick by default, causes frequent troubles
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed May 12, 2022
1 parent 35616c5 commit 243c75a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,12 @@ int dt_gui_init()
{
const char *name = glfwGetJoystickName(GLFW_JOYSTICK_1);
dt_log(s_log_gui, "found joystick %s", name);
const int disable = dt_rc_get_int(&vkdt.rc, "gui/disable_joystick", 0);
const int disable = dt_rc_get_int(&vkdt.rc, "gui/disable_joystick", 1);
if(disable)
{
vkdt.wstate.have_joystick = 0;
dt_log(s_log_gui, "disabling joystick due to explicit config request");
dt_log(s_log_gui, "disabling joystick due to explicit config request. enable by");
dt_log(s_log_gui, "setting 'intgui/disable_joystick:0' in ~/.config/vkdt/config.rc");
}
else
{
Expand Down

0 comments on commit 243c75a

Please sign in to comment.