This commit is contained in:
popux committed 2026-10-23 15:32:44 +02:00
1 parent 23ce248dce
commit 6d63e12034
1 file changed
+7
+7
View File
@@ -2262,6 +2262,13 @@ void bmoveProcessInput(bool allowc1x, bool allowc1y, bool allowc1buttons, bool i
y = (y < -1.f) ? -1.f : ((y > 1.f) ? 1.f : y);
g_Vars.currentplayer->swivelpos[0] = x;
g_Vars.currentplayer->swivelpos[1] = y;
// The stick still offsets the crosshair, as in the stick-only path below, so gyro (sent as mouse)
// and stick aiming combine
x += (movedata.c1stickxraw * 0.65f) / 80.0f;
y += (movedata.c1stickyraw * 0.65f) / 80.0f;
x = (x < -1.f) ? -1.f : ((x > 1.f) ? 1.f : x);
y = (y < -1.f) ? -1.f : ((y > 1.f) ? 1.f : y);
bgunSwivelWithDamp(x, y, 0.01f);
return;
}