From 0730eb4c491d15504e85fcfbcc0f16ed687b6694 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Wed, 17 Oct 2018 21:56:04 +0200 Subject: [PATCH] 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. --- .vimrc | 2 +- src/main.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index d7501ab..4bc6a39 100644 --- a/.vimrc +++ b/.vimrc @@ -5,5 +5,5 @@ nnoremap :ter ++close ./_build/debug/breakhack packadd termdebug 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' ] diff --git a/src/main.c b/src/main.c index 5ac7bb9..3166bb9 100644 --- a/src/main.c +++ b/src/main.c @@ -250,6 +250,11 @@ bool initSDL(void) SDL_GetError()); return false; } + + if (SDL_IsTextInputActive()) { + debug("Disabling text input"); + SDL_StopTextInput(); + } return true; }