1
0
Fork 0
forked from fte/fteqw

Account for setsensitivityscaler in IN_MoveJoystick (#264)

This commit is contained in:
Peter0x44 2024-08-26 23:44:14 +01:00 committed by GitHub
parent f75ba7d8e8
commit 00a42c24c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1057,9 +1057,9 @@ void IN_MoveJoystick(struct joy_s *joy, float *movements, int pnum, float framet
return; return;
//angle changes //angle changes
cl.playerview[pnum].viewanglechange[PITCH] += joy_anglesens[0].value * jlook[0]; cl.playerview[pnum].viewanglechange[PITCH] += joy_anglesens[0].value * jlook[0] * in_sensitivityscale;
cl.playerview[pnum].viewanglechange[YAW] -= joy_anglesens[1].value * jlook[1]; cl.playerview[pnum].viewanglechange[YAW] -= joy_anglesens[1].value * jlook[1] * in_sensitivityscale;
cl.playerview[pnum].viewanglechange[ROLL] += joy_anglesens[2].value * jlook[2]; cl.playerview[pnum].viewanglechange[ROLL] += joy_anglesens[2].value * jlook[2] * in_sensitivityscale;
if (in_mlook.state[pnum] & 1) if (in_mlook.state[pnum] & 1)
V_StopPitchDrift (&cl.playerview[pnum]); V_StopPitchDrift (&cl.playerview[pnum]);