Skip to content

Commit

Permalink
update sdl init hint
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Sep 5, 2024
1 parent 3df622a commit 3281046
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vita3k/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,12 @@ int main(int argc, char *argv[]) {
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_SWITCH, "1");
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS, "1");

if (SDL_Init(SDL_INIT_GAMECONTROLLER | SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0) {
// From 2.0.18: Enable native IME.
#ifdef SDL_HINT_IME_SHOW_UI
SDL_SetHint(SDL_HINT_IME_SHOW_UI, "1");
#endif

if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER | SDL_INIT_AUDIO) < 0) {
app::error_dialog("SDL initialisation failed.");
return SDLInitFailed;
}
Expand Down

0 comments on commit 3281046

Please sign in to comment.