diff options
Diffstat (limited to 'code/client')
-rw-r--r-- | code/client/cl_input.c | 3 | ||||
-rw-r--r-- | code/client/cl_main.c | 2 | ||||
-rw-r--r-- | code/client/client.h | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/code/client/cl_input.c b/code/client/cl_input.c index 06266eb..a58f67a 100644 --- a/code/client/cl_input.c +++ b/code/client/cl_input.c @@ -435,7 +435,8 @@ void CL_MouseMove( usercmd_t *cmd ) { cl.mouseDy[cl.mouseIndex] = 0; rate = sqrt( mx * mx + my * my ) / (float)frame_msec; - accelSensitivity = cl_sensitivity->value + rate * cl_mouseAccel->value; + accelSensitivity = ( cl_sensitivity->value * + cl_platformSensitivity->value ) + rate * cl_mouseAccel->value; // scale by FOV accelSensitivity *= cl.cgameSensitivity; diff --git a/code/client/cl_main.c b/code/client/cl_main.c index d890275..f3405b4 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -48,6 +48,7 @@ cvar_t *cl_forceavidemo; cvar_t *cl_freelook; cvar_t *cl_sensitivity; +cvar_t *cl_platformSensitivity; cvar_t *cl_mouseAccel; cvar_t *cl_showMouseRate; @@ -2307,6 +2308,7 @@ void CL_Init( void ) { cl_run = Cvar_Get ("cl_run", "1", CVAR_ARCHIVE); cl_sensitivity = Cvar_Get ("sensitivity", "5", CVAR_ARCHIVE); + cl_platformSensitivity = Cvar_Get ("cl_platformSensitivity", "1.0", CVAR_ROM); cl_mouseAccel = Cvar_Get ("cl_mouseAccel", "0", CVAR_ARCHIVE); cl_freelook = Cvar_Get( "cl_freelook", "1", CVAR_ARCHIVE ); diff --git a/code/client/client.h b/code/client/client.h index 1398619..eace49c 100644 --- a/code/client/client.h +++ b/code/client/client.h @@ -330,6 +330,7 @@ extern cvar_t *cl_run; extern cvar_t *cl_anglespeedkey; extern cvar_t *cl_sensitivity; +extern cvar_t *cl_platformSensitivity; extern cvar_t *cl_freelook; extern cvar_t *cl_mouseAccel; |