clear key states on game start

This commit is contained in:
Chris Ison 2002-01-17 22:04:58 +00:00
parent c3b2533803
commit e3b2bfb81a
6 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -34,7 +34,7 @@ static const char rcsid[] =
#include <windows.h>
#include "QF/vid.h"
#include "QF/input.h"
void
VID_RaiseWindow (void)

View file

@ -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;

View file

@ -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;