Skip to content

Commit

Permalink
SDL3: Moved SDL_StartTextInput() to glimp_sdl3.c
Browse files Browse the repository at this point in the history
  • Loading branch information
erysdren authored and Yamagi committed Oct 6, 2024
1 parent 5ace09c commit 2c212ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/client/input/sdl3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2345,11 +2345,6 @@ IN_Init(void)
}
}

#if 0
// needs an SDL_Window pointer now??
SDL_StartTextInput();
#endif

IN_Controller_Init(false);

Com_Printf("------------------------------------\n\n");
Expand Down
3 changes: 3 additions & 0 deletions src/client/vid/glimp_sdl3.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ CreateSDLWindow(int flags, int fullscreen, int w, int h)

if (window)
{
/* enable text input */
SDL_StartTextInput(window);

/* save current display as default */
if ((last_display = SDL_GetDisplayForWindow(window)) == 0)
{
Expand Down

0 comments on commit 2c212ae

Please sign in to comment.