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
- Jeff, 2026-11-29, after WP-118’s build: “The remote worked well at the
lowest speed setting.” He set the global Pointer Speed to its lowest step
(
kbdmouse_speed=0in the TV’sscummvm.ini). He asked whether ScummVM settings can be per game, and chose a per-game Control tab over a TV-wide packaged default. - What ScummVM had:
- Pointer Speed and Joy Deadzone are only on Global Options’ Control tab. Game Options has per-game overrides for Graphics, Audio, Volume, MIDI and the rest, but no Control tab.
- The virtual mouse reads both settings from the active domain on every
move (
backends/keymapper/virtual-mouse.cpp), so a per-game value would already work if something stored it.
Scope
In scope
- 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.
- 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.
- Touchpad mouse mode stays global: it switches a backend feature and isn’t stored per game.
- 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.
- 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
- A packaged default speed for the TV app (Jeff chose per game).
- Upstream submission (as WP-118 D6: Jeff decides).
Exit criteria
- 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).
- OK stores
kbdmouse_speedandjoystick_deadzoneunder[showdown-win]only, and the global value is unchanged (scummvm.ini). Unticking removes both keys. - 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.
- The change builds under clang (Android) with no warnings in
gui/, and under GCC (Windows, MSYS2 UCRT64) with none either. - Jeff sets the speed he wants per game. Open.
- 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:
GUI: Add a Control tab to the game options(gui/options.*,gui/editgamedialog.*, the four layout files);GUI: Regenerate the themes for the game options' Control tab(default.incand 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 tab: Showdown’s Game Options list Control between Graphics and
Keymaps. With the override off, the sliders are disabled and show the
global value (step 0, labelled “3”). OK on the checkbox enables them, and
Right ×2 sets step 2, labelled “8” (
121-w123-gameopts,122-ctl-tab,124-ctl-speed,125-ctl-right2). - Storing:
- after OK,
scummvm.iniholdskbdmouse_speed=2andjoystick_deadzone=3under[showdown-win], andkbdmouse_speed=0under[scummvm], unchanged; - reopened, the tab shows the override ticked and step 2;
- unticked and OK,
[showdown-win]is empty again.
Jeff’s setup was as before (until the in-game check, below).
- after OK,
- In play: two D-pad long presses at Sign In moved the cursor about
425 px (half-scale capture) at Showdown’s speed 2, and about 92 px at the
global speed 0 (
132-signin-after-sp2,140-signin-after-sp0). Long-press timing varies, but the difference is plain. - Builds: clang (Android) and GCC (Windows, MSYS2 UCRT64), no warnings in
gui/.
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:
GUI: Add a Control tab to the in-game options:engines/dialogs.cpp, andGlobalConfig_Controlin the four layouts. Values are stored only when they change.OptionsDialog::storeControlSettings()keeps the Game Options override’s always-store.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
- With WP-118’s arrows, a slider hands Left on at its lowest step. On the Control tab, Left at step 0 moves the focus to the override checkbox.