Disable text input since this is on by default in SDL2.0

This has been causing some "jitter" I'm quite sure. Disabling text input
should help remedy this.
This commit is contained in:
Linus Probert 2018-10-17 21:56:04 +02:00
parent 7333d3d62d
commit 0730eb4c49
2 changed files with 6 additions and 1 deletions

2
.vimrc
View File

@ -5,5 +5,5 @@ nnoremap <F4> :ter ++close ./_build/debug/breakhack<cr>
packadd termdebug packadd termdebug
let g:termdebug_wide = 1 let g:termdebug_wide = 1
let g:syntastic_c_include_dirs = [ '_build', '/usr/include/SDL2', 'steamworks_c_wrapper/src' ] let g:syntastic_c_include_dirs = [ '_build/debug', '/usr/include/SDL2', 'steamworks_c_wrapper/src' ]
let g:syntastic_cpp_include_dirs = [ 'steamworks_c_wrapper/sdk/public/steam' ] let g:syntastic_cpp_include_dirs = [ 'steamworks_c_wrapper/sdk/public/steam' ]

View File

@ -250,6 +250,11 @@ bool initSDL(void)
SDL_GetError()); SDL_GetError());
return false; return false;
} }
if (SDL_IsTextInputActive()) {
debug("Disabling text input");
SDL_StopTextInput();
}
return true; return true;
} }