Add new hint SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE to support proper GameCube rumble with GC controllers

This commit is contained in:
Phillip Stephens 2022-02-22 22:39:48 -08:00
parent 848a8e4201
commit acb137c790
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
2 changed files with 7 additions and 4 deletions

View File

@ -230,14 +230,17 @@ void app_run(std::unique_ptr<AppDelegate> app, Icon icon, int argc, char** argv)
for (size_t i = 1; i < argc; ++i) {
g_Args.emplace_back(argv[i]);
}
#if !defined(_WIN32) && !defined(__APPLE__)
SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
#endif
if (SDL_Init(SDL_INIT_EVERYTHING) < 0) {
Log.report(logvisor::Fatal, FMT_STRING("Error initializing SDL: {}"), SDL_GetError());
unreachable();
}
#if !defined(_WIN32) && !defined(__APPLE__)
SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
#endif
SDL_SetHint(SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE, "1");
Uint32 flags = SDL_WINDOW_SHOWN | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_RESIZABLE;
switch (gpu::preferredBackendType) {
#ifdef DAWN_ENABLE_BACKEND_VULKAN

2
extern/SDL vendored

@ -1 +1 @@
Subproject commit b1fafe65d63a947d262e750afccbc6eee28cace1
Subproject commit 16612cae46c00bbd3e166896bd8125bb6a35b4f3