Skip to content

v20261127-c3-focus-navigation

Pre-release
Pre-release

Choose a tag to compare

@TechEdison0 TechEdison0 released this 27 Nov 02:47
· 29 commits to main since this release

C3 Focus Navigation — the controller action layer continues with D-pad focus navigation and a visible red highlight box on the focused widget.

What's in it

  • D-pad widget focus: Geometric movement across live widget rectangles with wrap-around. The red focus ring marks the exact widget that A will activate.
  • Focused activation and close: A activates the highlighted widget; B closes through the normal back/escape path. Left-stick movement returns to the crosshair and A-as-click mode.
  • Window reachability: Focus can reach toolbar build windows, dropdown rows, and windows opened from viewport objects such as depots, vehicles and towns. Main-menu controls behind an open dialog are suppressed.
  • Input-source handoff: The last focused D-pad widget is remembered, so switching left stick → D-pad resumes at the same item. Keyboard, mouse and touch activity clear the focus ring.
  • Touch-gated on-screen keyboard: Edit boxes raise the OSK or native keyboard only for touch-originated activation. Controller activation of the rail/road picker no longer opens a keyboard.
  • Controller Guide cleanup: The guide explains X as temporarily hiding the tooltip, Y as cancel, and tooltip closing as a separate action.

Fixed

  • Dropdown rows no longer auto-commit the top-left entry: gamepad focus disables cursor-driven drag_mode and A selects the highlighted row.
  • The in-game bottom status bar is ignored by D-pad focus, while the main toolbar save button is focusable.
  • WWT_PANEL and WWT_INSET containers are no longer focus candidates.
  • Crosshair position is saved on D-pad takeover and restored when left-stick control resumes.
  • The OSK is blocked at ShowOnScreenKeyboard(), not just at editbox click dispatch. On Android, SDL_StartTextInput() is called only for touch-originated edit boxes.

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 completed a controller-only workflow on all three targets: created a depot and two bus stops, bought a bus, assigned orders, and cloned the bus with shared orders.

Assets

Asset Size
openttd-20261127-main-gc823ff2cd1-linux-x86_64.zip 11,194,352 bytes
openttd-20261127-main-gc823ff2cd1-win64.zip 17,633,240 bytes
openttd-20261127-main-gc823ff2cd1-android-arm64-v8a-debug.apk 91,609,041 bytes

Release details

  • Upstream pin: OpenTTD 16.0-RC1 (07b339c0aaeb0a87be9490b2f1c3f17c6b00b837); Android glue donor: psyycker/openttd-android @ 9407a7f.
  • Fork commit: c823ff2cd1 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 continues controller hardening and remaining input polish.