fix(input): gate auto-align toggle behind Shift+A#98
Open
MikePehel wants to merge 1 commit into
Open
Conversation
Bare A overlapped the WASDEQ camera-strafe set in scene.c, so every
camera-left touch flipped takeoff alignment on/off as a side effect.
The toggle is now modifier-gated: only fires when Shift is held with A.
- main.c: IsKeyDown(KEY_LEFT_SHIFT) || IsKeyDown(KEY_RIGHT_SHIFT)
required alongside IsKeyPressed(KEY_A).
- main.c: comment on takeoff_aligned state updated to "Shift+A".
- hud_help.c: legend entry rewritten as "Sh+A" → "Takeoff alignment".
Verified by running ./hawkeye --replay against the Lucky Seven swarm:
bare A only strafes the camera; Shift+A toggles auto-align with the
expected toast and seek-to-takeoff behavior.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Auto-align is now toggled with Shift+A instead of bare
A.Why
Bare
Acollided with the WASDEQ camera-left strafe — every camera-left touch flipped takeoff auto-align on/off. Gating the toggle on Shift frees bareAto strafe only.Changes
src/main.c— Shift gate on the auto-align togglesrc/hud_help.c— legend updated toSh+A → Takeoff alignmentTest
Astrafes camera left, does not toggle alignment