Browse Source

Merge pull request #5 from nekonomicon/master

Fix undefined reference.
wantedhl
mittorn 9 years ago committed by GitHub
parent
commit
61b28e0c8c
  1. 2
      cl_dll/input.cpp
  2. 32
      cl_dll/inputw32.cpp

2
cl_dll/input.cpp

@ -23,7 +23,7 @@ extern "C" @@ -23,7 +23,7 @@ extern "C"
#include "const.h"
#include "camera.h"
#include "in_defs.h"
#include "view.h"
//#include "view.h"
#include <string.h>
#include <ctype.h>

32
cl_dll/inputw32.cpp

@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
#include "camera.h"
#include "in_defs.h"
#include "../engine/keydefs.h"
#include "view.h"
//#include "view.h"
#include "windows.h"
#define MOUSE_BUTTON_COUNT 5
@ -304,11 +304,6 @@ void IN_MouseMove ( float frametime, usercmd_t *cmd) @@ -304,11 +304,6 @@ void IN_MouseMove ( float frametime, usercmd_t *cmd)
gEngfuncs.GetViewAngles( (float *)viewangles );
if ( in_mlook.state & 1)
{
V_StopPitchDrift ();
}
//jjb - this disbles normal mouse control if the user is trying to
// move the camera, or if the mouse cursor is visible or if we're in intermission
if ( !iMouseInUse && !g_iVisibleMouse && !gHUD.m_iIntermission )
@ -791,18 +786,6 @@ void IN_JoyMove ( float frametime, usercmd_t *cmd ) @@ -791,18 +786,6 @@ void IN_JoyMove ( float frametime, usercmd_t *cmd )
{
viewangles[PITCH] += (fAxisValue * joy_pitchsensitivity->value) * aspeed * cl_pitchspeed->value;
}
V_StopPitchDrift();
}
else
{
// no pitch movement
// disable pitch return-to-center unless requested by user
// *** this code can be removed when the lookspring bug is fixed
// *** the bug always has the lookspring feature on
if(lookspring->value == 0.0)
{
V_StopPitchDrift();
}
}
}
else
@ -844,7 +827,6 @@ void IN_JoyMove ( float frametime, usercmd_t *cmd ) @@ -844,7 +827,6 @@ void IN_JoyMove ( float frametime, usercmd_t *cmd )
{
viewangles[YAW] += (fAxisValue * joy_yawsensitivity->value) * speed * 180.0;
}
}
}
break;
@ -863,18 +845,6 @@ void IN_JoyMove ( float frametime, usercmd_t *cmd ) @@ -863,18 +845,6 @@ void IN_JoyMove ( float frametime, usercmd_t *cmd )
{
viewangles[PITCH] += (fAxisValue * joy_pitchsensitivity->value) * speed * 180.0;
}
V_StopPitchDrift();
}
else
{
// no pitch movement
// disable pitch return-to-center unless requested by user
// *** this code can be removed when the lookspring bug is fixed
// *** the bug always has the lookspring feature on
if( lookspring->value == 0.0 )
{
V_StopPitchDrift();
}
}
}
break;

Loading…
Cancel
Save