mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 00:40:56 +00:00
Scale both mouse axes the same in CONTROL_GetMouseDelta()
git-svn-id: https://svn.eduke32.com/eduke32@7344 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
10757aa836
commit
e513ad21d1
2 changed files with 2 additions and 2 deletions
|
@ -2944,7 +2944,7 @@ void P_GetInput(int const playerNum)
|
||||||
else
|
else
|
||||||
input.q16avel = fix16_div(fix16_from_int(info.dyaw), F16(32));
|
input.q16avel = fix16_div(fix16_from_int(info.dyaw), F16(32));
|
||||||
|
|
||||||
input.q16horz = fix16_div(fix16_from_int(info.dpitch), F16(128));
|
input.q16horz = fix16_div(fix16_from_int(info.dpitch), F16(64));
|
||||||
|
|
||||||
if (ud.mouseflip) input.q16horz = -input.q16horz;
|
if (ud.mouseflip) input.q16horz = -input.q16horz;
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,7 @@ static void CONTROL_GetMouseDelta(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
CONTROL_MouseAxes[0].analog = Blrintf(finput.x * 4.f * CONTROL_MouseSensitivity);
|
CONTROL_MouseAxes[0].analog = Blrintf(finput.x * 4.f * CONTROL_MouseSensitivity);
|
||||||
CONTROL_MouseAxes[1].analog = Blrintf(finput.y * 8.f * CONTROL_MouseSensitivity);
|
CONTROL_MouseAxes[1].analog = Blrintf(finput.y * 4.f * CONTROL_MouseSensitivity);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int32_t CONTROL_GetTime(void)
|
static int32_t CONTROL_GetTime(void)
|
||||||
|
|
Loading…
Reference in a new issue