Skip to content

v20261127-c4-viewport-movement

Pre-release
Pre-release

Choose a tag to compare

@TechEdison0 TechEdison0 released this 27 Nov 04:11
· 34 commits to main since this release

C4 Viewport Movement — right-stick viewport pan, decoupled from D-pad focus and left-stick placement.

What's in it

  • Right-stick pan: Moving the right stick scrolls the main viewport through the existing HandleJoystickScroll() path.
  • Shared response curve: Both sticks use the 15% scaled radial deadzone and gamma-2 response curve, giving precise control near the centre and faster movement at full deflection.
  • Independent sticks: The left stick keeps controlling the A-click crosshair while the right stick pans the map. A build tool window can stay D-pad focused during both actions.
  • Focus-safe: Panning does not change focus, clear the focus ring, open an edit box or raise the OSK. Existing menu/progress suppression and vehicle-follow release behavior are preserved.
  • Guide update: The Controller Guide now describes the right-stick axes as Pan viewport.

Fixed

  • Removed the remaining C2 placeholder description for right-stick pan.
  • Right-stick movement now uses the mapped axis values from controller.cfg, so custom mappings follow the configured stick axes.

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. The maintainer confirmed right-stick viewport pan works perfectly across all systems, including simultaneous left-stick crosshair movement with D-pad focus preserved in a build window.

Tested configurations

Platform Tested on
Android Retroid Pocket Duo (top screen)
Android AYN Odin 2 Portal

The later v1.0 build also verified the integrated feature set on Galaxy S25 Ultra, KDE Neon
and Wine 9.0.

Gamepads

Gamepad Connection Device
Retroid Pocket Controller USB wired Retroid Pocket Duo
Odin Controller USB wired AYN Odin 2 Portal

Assets

Asset Size
openttd-20261127-main-g1e37976564-linux-x86_64.zip 11,194,436 bytes
openttd-20261127-main-g1e37976564-win64.zip 17,633,181 bytes
openttd-20261127-main-g1e37976564-android-arm64-v8a-debug.apk 91,609,549 bytes

Release details

  • Upstream pin: OpenTTD 16.0-RC1 (07b339c0aaeb0a87be9490b2f1c3f17c6b00b837); Android glue donor: psyycker/openttd-android @ 9407a7f.
  • Fork commit: 1e37976564 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. This is an experimental pre-release built with AI-assisted work reviewed by the maintainer; it is not endorsed by OpenTTD.
  • macOS is deferred; Waydroid validates layout only, not Bluetooth gamepad behavior.

Pre-release; the next chunk (C5) fills gaps in list and slider navigation.