Skip to content

Commit 0730eb4

Browse files
committed
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.
1 parent 7333d3d commit 0730eb4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.vimrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ nnoremap <F4> :ter ++close ./_build/debug/breakhack<cr>
55
66
packadd termdebug
77
let g:termdebug_wide = 1
8-
let g:syntastic_c_include_dirs = [ '_build', '/usr/include/SDL2', 'steamworks_c_wrapper/src' ]
8+
let g:syntastic_c_include_dirs = [ '_build/debug', '/usr/include/SDL2', 'steamworks_c_wrapper/src' ]
99
let g:syntastic_cpp_include_dirs = [ 'steamworks_c_wrapper/sdk/public/steam' ]

src/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ bool initSDL(void)
250250
SDL_GetError());
251251
return false;
252252
}
253+
254+
if (SDL_IsTextInputActive()) {
255+
debug("Disabling text input");
256+
SDL_StopTextInput();
257+
}
253258

254259
return true;
255260
}

0 commit comments

Comments
 (0)