]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
SDL2: combine SDL_KEYDOWN events directly with following SDL_TEXTINPUT events when...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 10 Jul 2017 12:43:27 +0000 (12:43 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 10 Jul 2017 12:43:27 +0000 (12:43 +0000)
commit50312b15cfb7bd198d25aef3e999effe67e67b4e
tree6e27c229bbbae16f7c37d20d59f3c8e9d4f03a5f
parent91e898971b8ec935b2d25e7cd0d26eb0c6a8d8a7
SDL2: combine SDL_KEYDOWN events directly with following SDL_TEXTINPUT events when possible.

This solves ` keypresses that open/close the console also typing in a character
"once and for all". The ability to type the ` character into the console is not
impaired by this as con_closeontoggleconsole's logic to by default ignore the
toggleconsole key when in the console but not at the beginning of the line
still applies.

From: terencehill <piuntn@gmail.com>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12335 d7cf8633-e32d-0410-b094-e92efae38249
vid_sdl.c