mirror of https://github.com/AxioDL/metaforce.git
Add new hint SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE to support proper GameCube rumble with GC controllers
This commit is contained in:
parent
848a8e4201
commit
acb137c790
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit b1fafe65d63a947d262e750afccbc6eee28cace1
|
||||
Subproject commit 16612cae46c00bbd3e166896bd8125bb6a35b4f3
|
Loading…
Reference in New Issue