diff options
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/input/input.c b/input/input.c index d4cea80853..b24e82fe50 100644 --- a/input/input.c +++ b/input/input.c @@ -1414,13 +1414,15 @@ void mp_input_load_config(struct input_ctx *ictx) talloc_free(tmp); } + bool use_gamepad = ictx->opts->use_gamepad; + input_unlock(ictx); + #if HAVE_SDL2_GAMEPAD - if (ictx->opts->use_gamepad) { + if (use_gamepad) mp_input_sdl_gamepad_add(ictx); - } +#else + (void)use_gamepad; #endif - - input_unlock(ictx); } bool mp_input_load_config_file(struct input_ctx *ictx, char *file) |