We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a71e3f commit 7bb045cCopy full SHA for 7bb045c
src/joystick/gdk/SDL_gameinputjoystick.cpp
@@ -279,9 +279,11 @@ static bool GAMEINPUT_JoystickInit(void)
279
return false;
280
}
281
282
+#if GAMEINPUT_API_VERSION >= 2
283
// Allow background controller input
284
// SDL manages focus policy at a higher level, so we can set this unconditionally.
285
g_pGameInput->SetFocusPolicy(GameInputEnableBackgroundInput | GameInputEnableBackgroundGuideButton | GameInputEnableBackgroundShareButton);
286
+#endif
287
288
hr = g_pGameInput->RegisterDeviceCallback(NULL,
289
GameInputKindController,
0 commit comments