The end of in_dga_mouseaccel, the birth of in_pre_sensitivity.

As the ONLY ways that in_dga_mouseaccel differed from sensitivity was
that it worked before m_filter, and that it was DGA only, it had to go.

Now in_pre_sensitivity works with all targets and is applied just before
m_filter.
This commit is contained in:
Zephaniah E. Hull 2001-08-06 05:01:31 +00:00
parent 9ac148dd69
commit 6a59ac6c51
2 changed files with 8 additions and 2 deletions

View File

@ -57,6 +57,7 @@
cvar_t *_windowed_mouse;
cvar_t *m_filter;
cvar_t *in_pre_sensitivity;
cvar_t *sensitivity;
cvar_t *lookstrafe;
cvar_t *in_freelook;
@ -94,6 +95,9 @@ IN_Move (void)
if (!in_mouse_avail)
return;
in_mouse_x *= in_pre_sensitivity->value;
in_mouse_y *= in_pre_sensitivity->value;
if (m_filter->int_val) {
in_mouse_x = (in_mouse_x + in_old_mouse_x) * 0.5;
in_mouse_y = (in_mouse_y + in_old_mouse_y) * 0.5;
@ -152,6 +156,8 @@ IN_Init_Cvars (void)
lookstrafe = Cvar_Get ("lookstrafe", "0", CVAR_ARCHIVE, NULL,
"when mlook/klook on player will strafe");
in_pre_sensitivity = Cvar_Get ("in_pre_sensitivity", "3", CVAR_ARCHIVE,
NULL, "mouse sensitivity multiplier (pre m_filter)");
sensitivity = Cvar_Get ("sensitivity", "3", CVAR_ARCHIVE, NULL,
"mouse sensitivity multiplier");
IN_LL_Init_Cvars ();

View File

@ -400,8 +400,8 @@ static void
event_motion (XEvent * event)
{
if (dga_active) {
in_mouse_x += event->xmotion.x_root * in_dga_mouseaccel->value;
in_mouse_y += event->xmotion.y_root * in_dga_mouseaccel->value;
in_mouse_x += event->xmotion.x_root;
in_mouse_y += event->xmotion.y_root;
} else {
if (vid_fullscreen->int_val || _windowed_mouse->int_val) {
if (!event->xmotion.send_event) {