Skip to content

fix(input): gate auto-align toggle behind Shift+A#98

Open
MikePehel wants to merge 1 commit into
PX4:mainfrom
MikePehel:fix/shift-a-autoalign
Open

fix(input): gate auto-align toggle behind Shift+A#98
MikePehel wants to merge 1 commit into
PX4:mainfrom
MikePehel:fix/shift-a-autoalign

Conversation

@MikePehel

Copy link
Copy Markdown
Contributor

What

Auto-align is now toggled with Shift+A instead of bare A.

Why

Bare A collided with the WASDEQ camera-left strafe — every camera-left touch flipped takeoff auto-align on/off. Gating the toggle on Shift frees bare A to strafe only.

Changes

  • src/main.c — Shift gate on the auto-align toggle
  • src/hud_help.c — legend updated to Sh+A → Takeoff alignment

Test

  • Bare A strafes camera left, does not toggle alignment
  • Shift+A toggles auto-align (toast + timelines snap to lift-off-together)
  • Verified on a 7-drone swarm replay

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant