From 1aaa97b91d4c65e5ddf5065a51a8e9bcbcc0cda4 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 24 Feb 2020 17:44:56 -0800 Subject: [PATCH] Override SDL 2.0.12 default of mapping buttons to labels rather than position --- app/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index a6eaeafb..1ef8ccf3 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -391,6 +391,11 @@ int main(int argc, char *argv[]) // Disable minimize on focus loss by default. Users seem to want this off by default. SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0"); + // SDL 2.0.12 changes the default behavior to use the button label rather than the button + // position as most other software does. Set this back to 0 to stay consistent with prior + // releases of Moonlight. + SDL_SetHint("SDL_GAMECONTROLLER_USE_BUTTON_LABELS", "0"); + #ifdef QT_DEBUG // Allow thread naming using exceptions on debug builds. SDL doesn't use SEH // when throwing the exceptions, so we don't enable it for release builds out