mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 07:11:41 +00:00
clear key states on game start
This commit is contained in:
parent
c3b2533803
commit
e3b2bfb81a
6 changed files with 6 additions and 2 deletions
|
@ -50,6 +50,8 @@ void IN_Shutdown (void);
|
|||
void IN_Commands (void);
|
||||
// oportunity for devices to stick commands on the script buffer
|
||||
|
||||
void IN_ClearStates (void);
|
||||
|
||||
void IN_SendKeyEvents (void);
|
||||
// Perform Key_Event () callbacks until the input que is empty
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ extern void IN_MouseEvent (int mstate);
|
|||
//extern void IN_MouseMove (usercmd_t *cmd);
|
||||
extern void IN_Move (void);
|
||||
extern void IN_Accumulate (void);
|
||||
extern void IN_ClearStates (void);
|
||||
extern void IN_Commands (void);
|
||||
|
||||
#endif // _IN_WIN_H
|
||||
|
|
|
@ -38,6 +38,7 @@ static const char rcsid[] =
|
|||
#include "QF/console.h"
|
||||
#include "QF/draw.h"
|
||||
#include "QF/keys.h"
|
||||
#include "QF/input.h"
|
||||
#include "QF/qargs.h"
|
||||
#include "QF/qendian.h"
|
||||
#include "QF/screen.h"
|
||||
|
|
|
@ -34,7 +34,7 @@ static const char rcsid[] =
|
|||
#include <windows.h>
|
||||
|
||||
#include "QF/vid.h"
|
||||
|
||||
#include "QF/input.h"
|
||||
|
||||
void
|
||||
VID_RaiseWindow (void)
|
||||
|
|
|
@ -716,6 +716,7 @@ CL_SetState (cactive_t state)
|
|||
r_active = true;
|
||||
game_target = IMT_0;
|
||||
key_dest = key_game;
|
||||
IN_ClearStates ();
|
||||
VID_SetCaption ("");
|
||||
} else {
|
||||
r_active = false;
|
||||
|
|
|
@ -1103,6 +1103,7 @@ CL_SetState (cactive_t state)
|
|||
r_active = true;
|
||||
game_target = IMT_0;
|
||||
key_dest = key_game;
|
||||
IN_ClearStates ();
|
||||
} else {
|
||||
r_active = false;
|
||||
game_target = IMT_CONSOLE;
|
||||
|
|
Loading…
Reference in a new issue