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:
parent
7333d3d62d
commit
0730eb4c49
2
.vimrc
2
.vimrc
|
@ -5,5 +5,5 @@ nnoremap <F4> :ter ++close ./_build/debug/breakhack<cr>
|
|||
|
||||
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' ]
|
||||
|
|
|
@ -250,6 +250,11 @@ bool initSDL(void)
|
|||
SDL_GetError());
|
||||
return false;
|
||||
}
|
||||
|
||||
if (SDL_IsTextInputActive()) {
|
||||
debug("Disabling text input");
|
||||
SDL_StopTextInput();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue