more mouse code cleanup

- remove sensitivity training (should be rewritten in cubescript, if
  actually required)
- more documentation on mouse sensitivity parameters
- some renaming

DOCREF findsens
This commit is contained in:
ac-stef
2017-04-30 21:15:05 +02:00
parent f9223149ec
commit 8d21f39ad9
4 changed files with 20 additions and 151 deletions
+6 -6
View File
@@ -464,14 +464,14 @@ void fixresizedscreen()
#endif
}
float scopesensfunc = 0.4663077f;
void scopefunc();
FVARFP(fov, 75, 90, 120, scopefunc());
VARFP(scopefov, 5, 50, 60, scopefunc());
void fovchanged();
FVARFP(fov, 75, 90, 120, fovchanged());
VARFP(scopefov, 5, 50, 60, fovchanged());
VARP(spectfov, 5, 110, 120);
void scopefunc()
void fovchanged()
{
scopesensfunc = tan(((float)scopefov)*0.5f*RAD)/tan(fov*0.5f*RAD);
extern float autoscopesensscale;
autoscopesensscale = tan(((float)scopefov)*0.5f*RAD)/tan(fov*0.5f*RAD);
}
float dynfov()