remove four SDL2-TODOs: no further work needed
SDL2 defaults to Unicode input (kinda) and repeating keys.
This commit is contained in:
parent
5ad3fa6c5e
commit
7a1c3262d8
2 changed files with 0 additions and 13 deletions
|
|
@ -1168,16 +1168,6 @@ void I_InitGraphics(void)
|
|||
|
||||
memset(I_VideoBuffer, 0, SCREENWIDTH * SCREENHEIGHT);
|
||||
|
||||
// We need SDL to give us translated versions of keys as well
|
||||
|
||||
// SDL2-TODO SDL_EnableUNICODE(1);
|
||||
|
||||
// Repeat key presses - this is what Vanilla Doom does
|
||||
// Not sure about repeat rate - probably dependent on which DOS
|
||||
// driver is used. This is good enough though.
|
||||
|
||||
// SDL2-TODO SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
|
||||
|
||||
// clear out any events waiting at the start and center the mouse
|
||||
|
||||
while (SDL_PollEvent(&dummy));
|
||||
|
|
|
|||
|
|
@ -304,7 +304,6 @@ int TXT_Init(void)
|
|||
SDL_LockSurface(screenbuffer);
|
||||
SDL_SetPaletteColors(screenbuffer->format->palette, ega_colors, 0, 16);
|
||||
SDL_UnlockSurface(screenbuffer);
|
||||
// SDL2-TODO SDL_EnableUNICODE(1);
|
||||
|
||||
screendata = malloc(TXT_SCREEN_W * TXT_SCREEN_H * 2);
|
||||
memset(screendata, 0, TXT_SCREEN_W * TXT_SCREEN_H * 2);
|
||||
|
|
@ -315,8 +314,6 @@ int TXT_Init(void)
|
|||
// Repeat key presses so we can hold down arrows to scroll down the
|
||||
// menu, for example. This is what setup.exe does.
|
||||
|
||||
// SDL2-TODO SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue