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:
Yamagi Burmeister 2014-01-05 18:49:06 +01:00
parent f80e02ffd9
commit 18733b68ce
5 changed files with 0 additions and 28 deletions

View file

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

View file

@ -264,12 +264,6 @@ IN_Shutdown(void)
IN_BackendShutdown();
}
void
IN_Commands(void)
{
IN_BackendMouseButtons();
}
void
IN_Move(usercmd_t *cmd)
{

View file

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

View file

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

View file

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