mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
in_sdl: Remove commented-out m_filter code and a misleading comment.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1093 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
7a3dfd61d7
commit
ab973d9f14
1 changed files with 1 additions and 13 deletions
|
@ -61,11 +61,7 @@ static int buttonremap[] =
|
||||||
K_MOUSE5
|
K_MOUSE5
|
||||||
};
|
};
|
||||||
|
|
||||||
/* mouse variables */
|
/* total accumulated mouse movement since last frame */
|
||||||
cvar_t m_filter = {"m_filter","0",CVAR_NONE};
|
|
||||||
|
|
||||||
/* total accumulated mouse movement since last frame,
|
|
||||||
* gets updated from the main game loop via IN_MouseMove */
|
|
||||||
static int total_dx, total_dy = 0;
|
static int total_dx, total_dy = 0;
|
||||||
|
|
||||||
static int IN_FilterMouseEvents (const SDL_Event *event)
|
static int IN_FilterMouseEvents (const SDL_Event *event)
|
||||||
|
@ -311,14 +307,6 @@ void IN_Move (usercmd_t *cmd)
|
||||||
{
|
{
|
||||||
int dmx, dmy;
|
int dmx, dmy;
|
||||||
|
|
||||||
/* TODO: fix this
|
|
||||||
if (m_filter.value)
|
|
||||||
{
|
|
||||||
dmx = (2*mx - dmx) * 0.5;
|
|
||||||
dmy = (2*my - dmy) * 0.5;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
dmx = total_dx * sensitivity.value;
|
dmx = total_dx * sensitivity.value;
|
||||||
dmy = total_dy * sensitivity.value;
|
dmy = total_dy * sensitivity.value;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue