WP-123: Pointer speed per game (a Control tab in the game options)

Status: ✅ Done (2026-11-30). Built and checked on the TCL 65Q77K, the game options and the in-game options (§Result). Fork PR barefootbetters/scummvm#48 merged on 2026-11-30 (merge commit 0cf720acb4), and private PR barefootbetters/scooby-engine-private#65 the same day (aabfa75b06). Closed on Jeff’s word (2026-11-30) with criterion 5 open: he keeps the global speed for now, and the tab is there when he wants one per game. Pre-flighted 2026-11-29 and run inline in the session that ran WP-118. Numbering: WP-122 is the last on main. No branch, commit or PR in this repo, the fork or the private repo uses WP-123 (wp-lifecycle §Supersession check). Phase: 5 (polish & distribution). Depends on: WP-104 (the TV theme, whose layouts need the new tab). Independent of WP-118’s code; the TV test build carried both. Companion EC: none (one change, one build, one TV run). Pre-flight required: Yes. It changes the fork’s shared gui/ and the themes. Targets generation(s): none (GUI); the setting applies to every game. Estimated effort: 2–3 hours, including the build and the TV run.


Goal

A game’s pointer speed (the speed the remote’s D-pad, or a gamepad, moves the game’s cursor) can be set for that game alone. It can be set from the launcher’s Game Options, or while playing from the in-game menu’s Options.

Background

Scope

In scope

  1. A Control tab in Game Options, where the backend has a pointer speed or a joystick deadzone. It has the usual “Override global control settings” checkbox, Pointer Speed and Joy Deadzone.
  2. Storing:
    • with the override ticked, the game keeps its own values, even ones equal to the global ones;
    • unticked, the game’s keys are removed.
  3. Touchpad mouse mode stays global: it switches a backend feature and isn’t stored per game.
  4. A Control tab in the in-game Options too (the global main menu’s Options). Jeff looked for the setting there first, in Showdown. Like the in-game volume, it changes the running game’s settings, storing a value only when it changes.
  5. The layout in the shared highres and lowres layouts, the classic theme’s two, and the TV theme. The built-in theme and the theme zips are regenerated. A theme without the layout simply has no such tab.

Out of scope

Exit criteria

  1. On the TCL, Showdown’s Game Options show a Control tab. Ticking the override enables the sliders, and the D-pad and OK reach and change them (captures).
  2. OK stores kbdmouse_speed and joystick_deadzone under [showdown-win] only, and the global value is unchanged (scummvm.ini). Unticking removes both keys.
  3. In play, the game’s own speed applies: the cursor moves further for the same D-pad presses at speed 2 than at the global speed 0.
  4. The change builds under clang (Android) with no warnings in gui/, and under GCC (Windows, MSYS2 UCRT64) with none either.
  5. Jeff sets the speed he wants per game. Open.
  6. In Showdown, MENU → Options has a Control tab. A changed speed is stored under [showdown-win], and an unchanged deadzone isn’t stored.

Result

Fork branch wp-123-game-control-tab, four commits on scooby-engine @ 900e4aa6b3:

  1. GUI: Add a Control tab to the game options (gui/options.*, gui/editgamedialog.*, the four layout files);
  2. GUI: Regenerate the themes for the game options' Control tab (default.inc and the four theme zips; their contents differ only in the layout files).

The private identity’s TV theme was rebuilt with tools/Build-TvAppTheme.ps1 from the WP-123 fork. tvapp.zip differs only in the two layouts and the font licence’s line endings (SHA-256 E7FBFCE3…921C, was 472DADDA…5056).

On the TCL (versionCode 26041037: WP-118’s tree, WP-123’s files and the rebuilt theme; adb’s D-pad). Captures are in C:\pcloud\BB\DEV\wp-118-tv-captures\.

The in-game tab (scope 5) came after Jeff’s report that he couldn’t find the setting from inside Showdown. It adds two commits:

  1. GUI: Add a Control tab to the in-game options: engines/dialogs.cpp, and GlobalConfig_Control in the four layouts. Values are stored only when they change. OptionsDialog::storeControlSettings() keeps the Game Options override’s always-store.
  2. GUI: Regenerate the themes for the in-game options' Control tab.

The TV theme was rebuilt again (tvapp.zip SHA-256 40403382…35EA).

On the TCL as versionCode 26041038, Showdown’s MENU → Options lists Audio, Control, Keymaps and Backend. Pointer Speed one step up, then OK, stored kbdmouse_speed=1 under [showdown-win] only, and nothing for the unchanged deadzone (154-gmm-options, 155-ingame-ctl).

Putting the setup back failed at first: the next keys landed in Google TV’s own launcher, not the app. On 2026-11-30, at Jeff’s request, Showdown’s Game Options → Control override was unticked and OK pressed from the remote. That emptied [showdown-win]’s control keys, leaving only kbdmouse_speed=0 under [scummvm] (164-ctl to 168-applied). Both builds are clean again.

Notes