Skip to content

v20261126-c2-action-layer

Pre-release
Pre-release

Choose a tag to compare

@TechEdison0 TechEdison0 released this 26 Nov 21:42
· 54 commits to main since this release

C2 Action Layer — chunk C2 complete with the C1 axis-domain bugfix: normalized press/release actions, input-source switching, held mouse actions, modifiers, crosshair movement, zoom, pause and fast-forward on every target.

What's in it

  • Normalized actions: A/X are held left/right clicks through the real MouseLoop() path, so drag-build and context menus work. Y cancels the active tool. Buttons activate on press and deactivate on release; no synthetic SDL events.
  • Input-source switching: real keyboard/mouse activity yields immediately, but mouse movement no longer cancels a held pad button. A/X holds survive crosshair movement and release on the physical button.
  • Shoulder modifiers: LB/RB are held Ctrl/Shift, including L+A share-orders and R+A cost-estimate combos.
  • Sticks and triggers: left stick moves the crosshair with a scaled 15% radial deadzone and gamma-2 curve; LT/RT zoom one step per press; L3 pauses and R3 toggles fast forward.
  • In-game access: options cog → Controller Guide, directly below Game Options. The C1 launcher remains on the main menu.

Fixed

  • Standard SDL-mapped controllers now use normalized game-controller axes, so SN30 Pro keeps the simple mapping flow and runtime activation matches SDL's axis domains.
  • Raw/unmapped controllers use an explicit calibration gesture, longest-stable rest, observed range, and edge-triggered capture; non-zero raw rests such as the 8BitDo Ultimate MG's -128 no longer auto-map every axis.
  • Gamepad A no longer activates the Controller window's Map Controller / Cancel widget when the crosshair is parked over it.
  • Held A/X survives crosshair movement; LB/RB modifiers are ORed into driver modifier state before transition checks.
  • Drag-build and context menus use the real MouseLoop() path on both press and release.

Verified

Compiled and manually tested on Linux x86_64, Windows x86_64 under Wine (native win32 video + SDL input) and Android arm64-v8a on a Samsung Galaxy S25 Ultra. All C2 actions were exercised on all three targets: held A/X, Y cancel, LB/RB combos, LT/RT zoom, L3 pause, R3 fast-forward, left-stick crosshair, input-source handoff, and the in-game Controller Guide entry. The C1 axis-domain bugfix was additionally verified with SN30 Pro on Linux and 8BitDo Ultimate MG mobile controller on Android.

Assets

Asset Size
openttd-20261126-main-gf5b6926155-linux-x86_64.zip 11.2 MB
openttd-20261126-main-gf5b6926155-win64.zip 17.6 MB
openttd-20261126-main-gf5b6926155-android-arm64-v8a-debug.apk 91.6 MB

Release details

  • Upstream pin: OpenTTD 16.0-RC1 (07b339c0aaeb0a87be9490b2f1c3f17c6b00b837); Android glue donor: psyycker/openttd-android @ 9407a7f.
  • Fork commit: f5b6926155 on main.
  • Linux: unzip and run ./openttd. Windows: unzip and double-click wine_launch.sh. Android: install the APK.
  • Base graphics, sound and music sets are excluded from every package.
  • Licensed under GPL-2.0; fork commits may include AI-assisted work reviewed by the maintainer.

Pre-release; the next chunk (C3) adds the focus model and focus ring.