mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
Small update to r683.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@684 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
ded49555b1
commit
9b86e17502
1 changed files with 3 additions and 4 deletions
|
@ -35,8 +35,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#include <IOKit/hidsystem/event_status_driver.h>
|
#include <IOKit/hidsystem/event_status_driver.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static keydest_t prev_key_dest;
|
|
||||||
|
|
||||||
static qboolean no_mouse = false;
|
static qboolean no_mouse = false;
|
||||||
|
|
||||||
static int buttonremap[] =
|
static int buttonremap[] =
|
||||||
|
@ -301,14 +299,15 @@ void IN_SendKeyEvents (void)
|
||||||
int sym, state;
|
int sym, state;
|
||||||
int modstate;
|
int modstate;
|
||||||
qboolean gamekey;
|
qboolean gamekey;
|
||||||
|
static qboolean prev_gamekey;
|
||||||
|
|
||||||
gamekey = (key_dest == key_game || m_keys_bind_grab);
|
gamekey = (key_dest == key_game || m_keys_bind_grab);
|
||||||
|
|
||||||
if (key_dest != prev_key_dest)
|
if (gamekey != prev_gamekey)
|
||||||
{
|
{
|
||||||
SDL_EnableUNICODE(!gamekey);
|
SDL_EnableUNICODE(!gamekey);
|
||||||
Key_ClearStates();
|
Key_ClearStates();
|
||||||
prev_key_dest = key_dest;
|
prev_gamekey = gamekey;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (SDL_PollEvent(&event))
|
while (SDL_PollEvent(&event))
|
||||||
|
|
Loading…
Reference in a new issue