mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-16 17:11:03 +00:00
Do not allow input devices to write to command buffer
Input devices should send key events and nothing more. The ability to add commands into the input buffer was used by the joystick code (removed long time ago) and as a dirty hack to work around limitations of DirectInput.
This commit is contained in:
parent
f80e02ffd9
commit
18733b68ce
5 changed files with 0 additions and 28 deletions
|
@ -61,11 +61,6 @@ void IN_BackendInit(in_state_t *in_state_p);
|
|||
*/
|
||||
void IN_BackendShutdown(void);
|
||||
|
||||
/*
|
||||
* Shuts the input backend down
|
||||
*/
|
||||
void IN_BackendMouseButtons(void);
|
||||
|
||||
/*
|
||||
* Move handling
|
||||
*/
|
||||
|
|
|
@ -264,12 +264,6 @@ IN_Shutdown(void)
|
|||
IN_BackendShutdown();
|
||||
}
|
||||
|
||||
void
|
||||
IN_Commands(void)
|
||||
{
|
||||
IN_BackendMouseButtons();
|
||||
}
|
||||
|
||||
void
|
||||
IN_Move(usercmd_t *cmd)
|
||||
{
|
||||
|
|
|
@ -445,16 +445,6 @@ IN_Update(void)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* SDL does all the mouse button processing for
|
||||
* us. Thus no need for this functions, it's
|
||||
* just here to satisfy the frontend.
|
||||
*/
|
||||
void
|
||||
IN_BackendMouseButtons(void)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Move handling
|
||||
*/
|
||||
|
|
|
@ -725,9 +725,6 @@ CL_SendCommand(void)
|
|||
/* get new key events */
|
||||
Sys_SendKeyEvents();
|
||||
|
||||
/* allow mice or other external controllers to add commands */
|
||||
IN_Commands();
|
||||
|
||||
/* process console commands */
|
||||
Cbuf_Execute();
|
||||
|
||||
|
|
|
@ -29,10 +29,6 @@
|
|||
#define CL_HEADER_INPUT_H
|
||||
|
||||
void IN_Shutdown (void);
|
||||
|
||||
/* oportunity for devices to stick commands on the script buffer */
|
||||
void IN_Commands (void);
|
||||
|
||||
void IN_Frame (void);
|
||||
|
||||
/* add additional movement on top of the keyboard move cmd */
|
||||
|
|
Loading…
Reference in a new issue