From a3ee609cde72d4233965971ee1539b3d7850c797 Mon Sep 17 00:00:00 2001 From: Cyd Date: Fri, 17 Jul 2026 10:54:35 -0500 Subject: [PATCH] Input: move the 1st/3rd-person view toggle to TAB Per request, bind the cockpit (1st person) / external chase camera (3rd person) toggle to TAB instead of F1. Still a desktop-only convenience on `focused` (always live, even under PadRIO); V remains look-behind only. TAB is otherwise unbound (the 0x09 in bindings.txt is a RIO button ADDRESS on the C key, not the TAB virtual key). Dist README updated. Co-Authored-By: Claude Opus 4.8 --- game/reconstructed/mech4.cpp | 15 +++++++-------- pack-dist.ps1 | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/game/reconstructed/mech4.cpp b/game/reconstructed/mech4.cpp index ecf2825..3593fe7 100644 --- a/game/reconstructed/mech4.cpp +++ b/game/reconstructed/mech4.cpp @@ -2684,15 +2684,14 @@ void const int xNow = gfocus && (pAsync('X') & dn) ? 1 : 0; if (xNow && !sPrevX) gBTDrive.allStop = 1; // edge -> one all-stop sPrevX = xNow; - // F1: toggle the view between the authentic COCKPIT eyepoint - // (the pod's only view) and the external chase camera. Moved - // off 'V' -- which is the authentic look-behind (held) above -- - // so the two no longer collide (pressing V used to also flip - // the camera). Desktop-only convenience with no RIO equivalent: - // stays on `focused` (not the BT_DEVKEYS `gfocus` gate), always - // live even under PadRIO. + // TAB: toggle the view between the authentic COCKPIT eyepoint + // (1st person -- the pod's only view) and the external chase + // camera (3rd person). Kept off 'V' (the authentic look-behind, + // held, above) so the two no longer collide. Desktop-only + // convenience with no RIO equivalent: stays on `focused` (not the + // BT_DEVKEYS `gfocus` gate), always live even under PadRIO. static int sPrevViewKey = 0, sViewInside = 0; - const int viewKeyNow = focused && (pAsync(0x70 /*VK_F1*/) & dn) ? 1 : 0; + const int viewKeyNow = focused && (pAsync(0x09 /*VK_TAB*/) & dn) ? 1 : 0; if (viewKeyNow && !sPrevViewKey) { sViewInside = !sViewInside; diff --git a/pack-dist.ps1 b/pack-dist.ps1 index 4f5c120..9e76214 100644 --- a/pack-dist.ps1 +++ b/pack-dist.ps1 @@ -195,7 +195,7 @@ XInput controller + keyboard through bindings.txt; edit that file to rebind. the Secondary columns (full layout in bindings.txt) mouse click the on-screen cockpit buttons Always-live desktop keys (not rebindable): - F1 toggle cockpit / external chase camera + TAB toggle 1st person (cockpit) / 3rd person (chase cam) ` (backtick) hide / show the secondary displays (MFDs + radar) V (hold) look behind (rear view; rear-mounted weapons fire) (The engine's built-in WASD / 1-4 quick keys overlap the bindings, so they