Added TTimo's QuakeLive-style mouse acceleration, thanks Gabriel Schnoering and TTimo for the patch. (#3693)
This commit is contained in:
parent
3d7d2d9f5b
commit
018de1dd2e
4 changed files with 133 additions and 37 deletions
|
@ -73,6 +73,8 @@ cvar_t *cl_freelook;
|
|||
cvar_t *cl_sensitivity;
|
||||
|
||||
cvar_t *cl_mouseAccel;
|
||||
cvar_t *cl_mouseAccelOffset;
|
||||
cvar_t *cl_mouseAccelStyle;
|
||||
cvar_t *cl_showMouseRate;
|
||||
|
||||
cvar_t *m_pitch;
|
||||
|
@ -3101,6 +3103,13 @@ void CL_Init( void ) {
|
|||
cl_mouseAccel = Cvar_Get ("cl_mouseAccel", "0", CVAR_ARCHIVE);
|
||||
cl_freelook = Cvar_Get( "cl_freelook", "1", CVAR_ARCHIVE );
|
||||
|
||||
// 0: legacy mouse acceleration
|
||||
// 1: new implementation
|
||||
cl_mouseAccelStyle = Cvar_Get( "cl_mouseAccelStyle", "0", CVAR_ARCHIVE );
|
||||
// offset for the power function (for style 1, ignored otherwise)
|
||||
// this should be set to the max rate value
|
||||
cl_mouseAccelOffset = Cvar_Get( "cl_mouseAccelOffset", "5", CVAR_ARCHIVE );
|
||||
|
||||
cl_showMouseRate = Cvar_Get ("cl_showmouserate", "0", 0);
|
||||
|
||||
cl_allowDownload = Cvar_Get ("cl_allowDownload", "0", CVAR_ARCHIVE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue