Skip to content

Commit 7bb045c

Browse files
committed
Fixed Windows build
1 parent 9a71e3f commit 7bb045c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/joystick/gdk/SDL_gameinputjoystick.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,11 @@ static bool GAMEINPUT_JoystickInit(void)
279279
return false;
280280
}
281281

282+
#if GAMEINPUT_API_VERSION >= 2
282283
// Allow background controller input
283284
// SDL manages focus policy at a higher level, so we can set this unconditionally.
284285
g_pGameInput->SetFocusPolicy(GameInputEnableBackgroundInput | GameInputEnableBackgroundGuideButton | GameInputEnableBackgroundShareButton);
286+
#endif
285287

286288
hr = g_pGameInput->RegisterDeviceCallback(NULL,
287289
GameInputKindController,

0 commit comments

Comments
 (0)