Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hud_help.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void hud_draw_help(Font font_value, Font font_label,
{"Sh+B", "Delete current marker"},
{"[ / ]", "Jump to prev/next marker"},
{"Sh+[ / ]", "Track from marker"},
{"A", "Takeoff alignment"},
{"Sh+A", "Takeoff alignment"},
};

int counts[3] = {
Expand Down
9 changes: 6 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ int main(int argc, char *argv[]) {
}
}

// ── Takeoff alignment state (toggled by A key) ──
// ── Takeoff alignment state (toggled by Shift+A) ──
bool takeoff_aligned = false;
if (is_replay && num_replay_files > 1) {
// Set multi-file CONF for each source (always available)
Expand Down Expand Up @@ -1049,8 +1049,11 @@ int main(int argc, char *argv[]) {
markers[i].current = -1;
}
}
// A key: toggle takeoff time alignment
if (IsKeyPressed(KEY_A) && num_replay_files > 1) {
// Shift+A: toggle takeoff time alignment. Modifier-gated so
// bare A stays free for the WASDEQ camera-left strafe in scene.c
// (without the gate, every camera-left touch flipped auto-align).
bool shift_held = IsKeyDown(KEY_LEFT_SHIFT) || IsKeyDown(KEY_RIGHT_SHIFT);
if (shift_held && IsKeyPressed(KEY_A) && num_replay_files > 1) {
takeoff_aligned = !takeoff_aligned;
const float takeoff_buffer = 5.0f;
for (int i = 0; i < nrf; i++) {
Expand Down
Loading