Add tilde key toggle for auto-run

Pressing ~ toggles auto-run (continuous forward movement). Pressing W or S
cancels it. Also cancelled on respawn/teleport.
This commit is contained in:
Kelsi 2026-02-07 16:05:13 -08:00
parent 3bb0096009
commit eb6e42eb59
2 changed files with 14 additions and 1 deletions

View file

@ -158,6 +158,8 @@ private:
bool xKeyWasDown = false;
bool rKeyWasDown = false;
bool runPace = false;
bool autoRunning = false;
bool tildeWasDown = false;
// Movement state tracking (for sending opcodes on state change)
bool wasMovingForward = false;