# Proposal: one control scheme for the play-* sites, and touch paddles for play-2600 Status: **proposal** (2026-11-23, a survey agent, at Aubrey's request of 2026-11-21). No site was changed. Everything below "Survey" was read from each site's `web/*.js`, `index.html` and `style.css` at the commits listed; docs were used only to cross-check. Choices marked *provisional* are technical defaults taken without asking, as the family's rule says. | Repository (a sibling checkout) | Commit read | System | | --- | --- | --- | | play-2600 | b40d0ef (main) | Atari 2600 | | play-nes | f1445c0 (main) | NES / Famicom / FDS | | play-gb | e9e4cab (main) | Game Boy, Color, Super Game Boy | | play-md | 3933f20 (pin-2-od2 = origin/main; local `main` is older, 2026-10-23) | Mega Drive | | play-pce | a68b43f (main) | PC Engine, SuperGrafx, CD | | emu-galaga | d60507c (main) | Galaga (arcade) | | galaga-remix | 599dc49 (main) | Neon Galaga (arcade) | | z80-wasm | 5ec6435 (main) | Galaxian (arcade) | ## The short version - **The five console sites are one family already** (play-nes's page, copied): the same round 8-way d-pad, the same "work out every finger afresh at each touch event" handler, the same bar, the same Settings dialog. They drift in what each copy kept: play-md has no save states, rewind or run-ahead (its board has no save state yet); play-pce has no rewind and offers three frames of run-ahead; play-md and play-pce lost the hat-switch d-pad for unmapped pads; reset is F6 on play-nes and a bar button only on play-md; F6 is the right difficulty switch on play-2600. - **The three arcade sites are a second family** (emu-galaga's page): a 2-way lever, one FIRE, coin and start pills, one controller only, pause on the right shoulder. On a phone emu-galaga and galaga-remix have no way to pause at all; z80-wasm's Pause is on the page below the play view, not in it. z80-wasm keeps nothing between visits (not even mute). - **No site has haptics, a mute key, a fullscreen key or fast-forward.** - **play-2600 knows one paddle game by SHA-1** (Big Top Bounce). The touch pad turns a paddle only by holding the d-pad's left or right (1.2 s for the whole knob). The proposal: one keyboard map (arrows, Z X C as the face row left to right, Enter Start, Right Shift Select, F2 reset, F5/F7 save/load, F8 slot, P pause, held Backspace rewind), one controller map (by position; LT held rewinds everywhere; a pause button on every controller), one touch language with two stick types (8-way d-pad for consoles, 2-way lever for 2-way arcade games), pills top-left on a phone on its side, and a pause button in every bar. A small `controls.js` shared by copy, with play-nes as its home. For play-2600, an absolute-position paddle strip directly under the picture, shown whenever the game runs with paddles. ## Survey ### play-2600 **Keyboard** (`KEYS`, `KEYPAD_KEYS`, `PAGE_KEYS` in app.js): - Joystick 1: arrows or W A S D; fire Space, Z or X. - Joystick 2: I J K L; fire Right Shift. - Front panel: F1 Game Select, F2 Game Reset (both held while the key is), F3 TV type, F4 left difficulty, F6 right difficulty (toggles, with a notice). - F5 save state, F7 load state (one slot per game, IndexedDB `state:`). - Pause or P: pause. Backspace held: rewind. - Keypad mode: 1 2 3 / Q W E / A S D / Z X C (left), numeric keypad 7 8 9 / 4 5 6 / 1 2 3 / * 0 / (right); F1/F2 still work. - Paddle mode: left/right (arrows or A D) turn paddle 1, J L paddle 2, at the whole range per 1.2 s (`PADDLE_SWEEP_S`). - No reset key beyond the Game Reset switch; the bar's power button restarts. - No mute, fullscreen or speed key. Ctrl, Alt and Meta chords are left to the browser. **Controller:** Gamepad API, up to four pads, standard mapping by position. D-pad or left stick past half way; any of the four face buttons fires; Back = Game Select, Start = Game Reset; LT (button 6) held = rewind. Unmapped pads (Firefox on Windows): the hat switch is found as the axis whose rest value is outside -1..1 and read as eight directions. In paddle mode the left stick's X is the paddle's absolute position (dead zone 0.08); controllers 1-4 are paddles 1-4. Pad N is player N; keyboard left keys, touch and the mouse panel join player 1. **Touch:** shown by `@media (pointer: coarse)`, hidden while the game list is up. - Portrait: picture on top (its width cut to leave 17rem), pad below. Round 8-way d-pad on the left (`--dpad: clamp(7.5rem, 38vw, 10rem)`): eight 45° slices, dead centre 12 % of its width, catches a finger within 0.6 of its width from the centre. One FIRE (1.3 × `--fire`, about 5.2-6.5rem, red) on the right. `select` and `reset` pills bottom centre. - Landscape: picture full height; the bar and the pad float over the picture's sides at 55 % opacity; the pills move to the top-left corner. - Multi-touch: every touch event recomputes the held mask from all fingers on the glass; a finger that lands on the d-pad keeps steering it until lifted, wherever it slides; other fingers press whatever button is under them, so sliding from one button to another moves the press. Rewind is the bar's ⏪ held by a finger. Blur and hidden page release everything. - No haptics. In paddle mode the d-pad's left/right sweep paddle 1; FIRE fires it. **Mouse:** in paddle mode the pointer's X over the picture sets paddle 1 absolutely (left edge = turned fully left = the range's high resistance, right edge = low), its button fires; keys or the d-pad take over until the mouse moves again. Range is `[0, 1]` of the pot unless the game's defaults say otherwise (Big Top Bounce: `[0, 0.28]`, MEASURED on the board). The front-panel buttons under the picture (Select, Reset held; Colour, Left, Right toggles) are hidden on touch screens. **Settings:** localStorage `play-2600-settings` = `{ volume, muted, runAhead, games: { : { machine, controllers, colour, leftA, rightA } } }`. Run-ahead Off/1/2. Per game: console (guess/NTSC/PAL/SECAM), controllers (joysticks/paddles/driving/keypads), switches. Volume. **Paddle detection:** `GAME_DEFAULTS` is built from the `INCLUDED` entries that carry a `sha1`: **one game, Big Top Bounce** (`0705fda1…`). Everything else starts on joysticks until the player picks Paddles in Settings, which is then remembered for that SHA-1. The board (a2600-rust-fast) has no controller database of its own. **Help vs code:** the Controls table agrees with the code. Small gaps: paddles also turn with A/D and fire with Z/X (not listed); the second paddle on J/L is not listed. ### play-nes **Keyboard:** the page passes held keys to the board by pygame name and the board's `host.rs` maps them (famicom-rust-fast 886f96b): arrows; B = Z or J; A = X or K; Select = Right Shift; Start = Enter (or keypad Enter). SNES-pad extras C V A S; Power Pad 1-4 / Q-R / A-F; M is the Famicom microphone; a plugged Famicom keyboard takes the whole keyboard (then P, Backspace, Tab, Esc and F1-F8 go to it). Page keys: F5 save, F6 reset, F7 load, Pause (and P unless a keyboard is plugged) pause, Backspace held rewind. F11/F12 stay the browser's. **No W A S D** (A and S are SNES-pad and Power Pad keys) and **no Space**. **Controller:** up to four pads, pad N = player N (Four Score etc.). South = B, East = A, North = SNES X, East also SNES A, LB/RB = SNES L/R, Back/Start = Select/Start, left stick past half way or raw for analog devices; **West does nothing**. Hat switch handled. LT held = rewind. **Touch:** the play-2600 layout with two round buttons: B (south) low-left, A (east) raised by 0.45 × `--fire`; `select`/`start` pills. Light guns: a finger on the picture aims and fires; the Vaus knob follows a finger, its button is A or B. Disk button in the bar for FDS sides. **Mouse:** Zapper aims and fires (right button shoots off screen); SNES mouse and Subor mouse lock the pointer on click (Esc frees it). **Settings:** `play-nes-settings` = `{ crop, square, scanlines, volume, muted, autoDisk, runAhead, games: { : { machine, device } } }`. Run-ahead Off/1/2. FDS BIOS stored. **Help vs code:** agrees. "Pause, or P": P is the game's when a keyboard is plugged. ### play-gb **Keyboard:** arrows or W A S D; B = Z or J; A = X or K; Select = either Shift; Start = Enter. F5 save, F7 load, Pause or P pause, Backspace held rewind. No reset key (power button in the bar). **Controller:** South = B, East = A, Back/Start; d-pad, left stick past half way; hat switch handled; LT rewind. On a Super Game Boy pad N = player N (up to four); otherwise every pad drives the one Game Boy. **Touch:** same as play-nes (B, A, select, start). **Settings:** `play-gb-settings` = `{ palette, screenColours, volume, muted, runAhead, games: { : { machine } } }`. Run-ahead Off/1/2. **Help vs code:** agrees. ### play-md **Keyboard:** arrows; A B C = Z X C (or J K L); X Y Z = A S D; Start = Enter; Mode = Q. P pauses (the Pause key does not). **No save state, rewind, run-ahead or reset key**; reset is a bar button. The keyboard and pad 1 are port 1, pad 2 is port 2. **Controller:** two pads. Two layouts (Settings, "Controller layout"): - `sega`: A B C = West, South, East; X Y Z = LB, North, RB. - `snes` (Street Fighter II style): X Y Z = West, North, LB; A B C = South, East, RB. Back = Mode, Start = Start. D-pad or left stick past half way. **No hat-switch handling** (an unmapped pad's d-pad does nothing). No rewind (LT unused). **Touch:** the same d-pad; face buttons a 3 × 2 grid (A B C below, X Y Z above, smaller, shown only with a 6-button pad), each column stepped down to the left as a Mega Drive pad is; one `start` pill bottom centre (stays at the bottom in landscape, not top-left). **No Mode button.** **Settings:** `play-md-settings` = `{ layout, pad, machine, scanlines, volume, muted }`, device-wide, not per game. No run-ahead. **Help vs code:** agrees; the controller column is filled from the layout. The bar's pause title says "Pause (P)", true. **Why the gaps:** megadrive-rust-fast and megadrive-rust have no save state (no `save_state` anywhere in their sources), and rewind and run-ahead on these sites are built on save states. ### play-pce **Keyboard:** arrows; II = Z or J; I = X or K; Select = Right Shift or Tab; Run = Enter; turbo II/I = Q/W; III IV V VI = C A S D. F5 save, F7 load, **F8 next slot (four slots)**, Pause or P pause. **No rewind.** No reset (the help says Run + Select resets most games). **Controller:** up to five pads with the multitap (pad N = player N). South = II, East = I; on a 2-button pad West/North = turbo II/I, on a 6-button pad West/North/LB/RB = III/IV/V/VI; Back/Start = Select/Run. **No hat-switch handling.** LT unused. **Touch:** same d-pad; II/I as play-nes's B/A (orange); III-VI a row of small buttons above them with the 6-button pad; `select`/`run` pills. **Settings:** `play-pce-settings` = `{ crop, smooth, scanlines, volume, muted, runAhead, slot, games: {…} }`. **Run-ahead Off/1/2/3** (the family's note: Aubrey uses 1, sometimes 2, never 3; frontends offer Off/1/2). **Help vs code:** agrees. ### emu-galaga and galaga-remix **Keyboard:** left = ← or A, right = → or D; fire = Space or Z; start 1 = 1, start 2 = 2; coin = 5 or C; **P or Esc** pause; Backspace held rewind. galaga-remix adds N (look: neon/arcade), T (flight paths), F (replay speed, only during a replay) and `?keys=1` (an input diagnostic; K saves a movie). **The remix's N, T and F are not in its help.** **Controller:** one pad (the first that presses a button). South = fire (help says "A (bottom face button)", Xbox naming), Back = coin, Start = start 1 (held 1 s = start 2), RB = pause, LT held = rewind. D-pad, left stick, hat switch (left/right only). **Touch:** shown on `(pointer: coarse)`. - Portrait: a 7.5rem round lever on the left, left/right only (dead middle 12 %, the knob travels ±30 %), 6.2rem FIRE on the right, `start`/`coin` pills stacked between (coin hidden with free play). - Landscape: the lever bottom-left, FIRE bottom-right, pills **top-right** under the bar. - Same finger rules as the consoles (a finger that lands on the lever owns it). Rewind is the bar's ⏪. **There is no pause button**: the bar is rewind, sound, fullscreen, settings. No haptics. Fullscreen does not lock orientation (right for a vertical game). **Save:** no keys; the running game is saved on hide/pagehide and offered back ("Welcome back: Resume / Start over"). **Settings:** localStorage key `settings` (not site-named) = `{ lives, bonus, difficulty, freeplay, demosound, scanlines, volume, muted }`; the remix adds `look`, `paths`. Its JavaScript default `look` is `neon` while the HTML marks `arcade` selected (the dialog shows the stored value, so only a first-time reader of the markup is misled). ### z80-wasm (Galaxian) **Keyboard:** 5 coin, 1 / 2 start, ← → move, Space fire, P pause, Backspace held rewind. **No A/D, Z or C aliases** (emu-galaga has them). **Controller:** as emu-galaga (South fire, Back coin, Start / held start, RB pause, LT rewind, hat switch). **Touch / phone view:** the site is a development page (ZEXALL rungs and all); on a touch screen, starting a game adds `html.play-on`, which turns the game into a full-screen play view (bar, picture, lever, FIRE, start/coin). The bar's × docks it back into the page ("Back to the game" undocks). Landscape: as emu-galaga, pills top-right. **Help vs code:** the table says touch Pause is "Pause button", but that button is on the page below the play view, not in it. **Settings:** none; nothing in localStorage. Mute is a page button and is forgotten. **No save state.** ## Comparison | | 2600 | NES | GB | MD | PCE | Galaga | Neon Galaga | Galaxian | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | Directions (keys) | arrows, WASD | arrows | arrows, WASD | arrows | arrows | ← → A D | ← → A D | ← → | | Face keys | Space Z X fire | Z=B X=A (J K) | Z=B X=A (J K) | Z X C = A B C, A S D = X Y Z | Z=II X=I (J K), Q W turbo, C A S D III-VI | Space Z | Space Z | Space | | Select / Start keys | F1 / F2 (switches) | RShift / Enter | Shift / Enter | Q (Mode) / Enter | RShift, Tab / Enter | 5, C / 1, 2 | 5, C / 1, 2 | 5 / 1, 2 | | Reset | F2 is Game Reset; power button | F6, button | power button | button only | power button | — | — | — | | Save / load | F5 / F7 | F5 / F7 | F5 / F7 | none | F5 / F7, F8 slot (4) | auto on hide | auto on hide | none | | Pause key | Pause, P | Pause, P* | Pause, P | P | Pause, P | P, Esc | P, Esc | P | | Rewind | Backspace, LT, ⏪ | same | same | none | none | same | same | same | | Run-ahead | 0/1/2 | 0/1/2 | 0/1/2 | none | 0/1/2/3 | none | none | none | | Other keys | F3 TV, F4/F6 difficulty, keypads | M mic, devices | — | — | — | — | N, T, F | — | | Pads | 4, by position, any face fires | 4, S=B E=A, W unused | 4 (SGB) or merged | 2, two layouts | 5 (multitap) | 1 | 1 | 1 | | Hat d-pad | yes | yes | yes | **no** | **no** | yes (2-way) | yes | yes | | Pad pause | — | — | — | — | — | RB | RB | RB | | Touch stick | 8-way round | 8-way round | 8-way round | 8-way round | 8-way round | 2-way lever | 2-way lever | 2-way lever | | Touch buttons | FIRE | B A | B A | A B C (+X Y Z) | II I (+III-VI) | FIRE | FIRE | FIRE | | Touch pills | select reset | select start | select start | start (no Mode) | select run | start coin | start coin | start coin | | Pills on side | top-left | top-left | top-left | bottom centre | top-left | top-right | top-right | top-right | | Touch pause | bar | bar | bar | bar | bar | **none** | **none** | **page only** | | Haptics | none | none | none | none | none | none | none | none | | Phone view | pointer: coarse | same | same | same | same | same | same | play-on class, dockable | | Fullscreen | button, locks landscape | same | same | same | same | button, no lock | same | button, no lock | | Settings key | play-2600-settings | play-nes-settings | play-gb-settings | play-md-settings | play-pce-settings | `settings` | `settings` | none | \* play-nes: P goes to the game when a Famicom keyboard is plugged. ## The proposal ### Keyboard (all sites) By `KeyboardEvent.code`, so the keys stay where they are on any keyboard layout. | Action | Key | Notes | | --- | --- | --- | | Directions | Arrows | W A S D as well where the system leaves those letters free (2600, GB, arcades). NES, MD and PCE keep A S D for their extra buttons. | | Face buttons | Z X C, left to right as printed on the pad; J K L the same | NES/GB B A, PCE II I, MD A B C (unchanged everywhere). One-button machines: Space, Z and X all fire. | | Extra row | A S D (MD X Y Z, PCE IV V VI; C stays PCE III), Q W (PCE turbo) | unchanged | | Select, Mode, Coin | Right Shift (both Shifts where free) | new: MD Mode also on Right Shift (Q kept), 2600 Game Select also on Right Shift (F1 kept), arcade coin also on Right Shift (5, C kept) | | Start, Run, Game Reset | Enter | new: 2600 Game Reset also on Enter (F2 kept), arcade start 1 also on Enter (1, 2 kept) | | Console reset button | F2 | new on NES (F6 kept as an alias) and MD; on the 2600 F2 is already the Game Reset switch. None on GB, PCE, arcades. | | Save state, load state | F5, F7 | every site that has save states | | Next slot | F8 | play-pce now; the others when they grow slots | | Pause | P and Pause | Esc is never a game key (it leaves fullscreen and pointer lock, and closes dialogs): drop it from the two Galaga sites | | Rewind | R, held; Backspace, held, kept as an alias | R is new (Aubrey, 2026-11-23: Backspace is too far from the hands on the keys); on play-nes R goes to the Family BASIC keyboard when one is plugged, like the other letters | | Mute | F9 | new everywhere (M is the NES microphone, so not M) *provisional* | | Fullscreen | none | F11 stays the browser's; the bar button does the phone things | | System extras | 2600: F1 F3 F4 F6, keypads; NES: M, devices; remix: N T F | stay, and go in each help table | ### Controller (all sites) The standard mapping, by position, so Nintendo, Xbox and PlayStation pads agree: - D-pad, the left stick past half way, and the hat switch of an unmapped pad (play-nes's `hatWord`) on every site. *Add to play-md and play-pce.* - South = the main button (B, II, FIRE, MD B); East = the second (A, I, MD C); West and North = the third and fourth where they exist (MD A and Y, PCE turbo or III/IV). One-button machines: every face button fires (play-2600 does; the arcades should too). - Back = Select / Mode / Coin / Game Select; Start = Start / Run / Start (held for two players on the arcades) / Game Reset. - LT (button 6) held = rewind, wherever rewind exists. - Pause: R3 (button 11, the right stick pressed) on every site, and RB as well on the arcades (unchanged there). The shoulders are game buttons on MD, PCE and the SNES-pad devices, so they cannot be the common pause. *provisional* - Pad N is player N; the keyboard and the touch pad join player 1. The arcades keep one pad. - The connect notice reads `Controller N: ` everywhere (play-2600 and play-gb print `Controller: `). ### Touch One language, two stick types, chosen by the machine's own stick: - **8-way round d-pad** for every console (play-md's, as now): left thumb, dead centre 12 %, the finger that lands on it owns it until lifted. - **2-way lever** for 2-way arcade games (emu-galaga's, as now). - **Face buttons** on the right: round, the system's colour; the main button lowest and leftmost (south), the second raised to its right (east), extra rows smaller and above. One-button machines get one big FIRE. - **Pills** (select/start, select/reset, select/run, coin/start) bottom centre in portrait, **top-left** on a phone on its side. Move the arcades' pills from top-right to top-left and play-md's start pill there too; add a **Mode** pill to play-md (with the 6-button pad). - **The bar** carries the page's own actions on every site, in one order: change game · save · load · slot · ⏪ rewind (hold) · reset · power · pause · sound · fullscreen · settings, each shown only where the site has it. **Add a pause button to the arcade bars** (the two Galaga sites have none; z80-wasm's is outside the play view). - **Finger rules** (already shared, keep them): recompute from all fingers at every touch event; slide-between moves the press; blur and hidden pages release everything; a mouse on the pad works. - **Haptics:** none now. `navigator.vibrate` works on Android Chrome only (not iOS Safari). See the open questions. - **Phone view:** `(pointer: coarse)` as now; z80-wasm keeps its dockable play view, since it is a development page around a game. - **Fullscreen:** consoles lock landscape; vertical arcade games do not (as now). ### Settings and their names - One dialog shape (play-nes's): per-game fieldset first ("This game": console, controller), then picture, Run-ahead, Volume, a "Controls" table, "About", "Forget all games". - **Run-ahead** Off / 1 frame / 2 frames on every site that has it (drop play-pce's 3, per the run-ahead note). - **Volume** 0-100 and **muted** remembered everywhere (z80-wasm remembers nothing now). - The Controls table has the same columns everywhere: **Keyboard | Controller | Touch** (z80-wasm's columns; the arcades now say "Gamepad", the consoles leave touch to a paragraph). Name buttons by position ("bottom button"), not by one maker's letters. - localStorage key `-settings` everywhere: `emu-galaga-settings`, `galaga-remix-settings`, `z80-wasm-settings`, reading the old `settings` key once so nobody loses their dip switches. Same fields where they mean the same thing: `volume`, `muted`, `runAhead`, `scanlines`, `games[]`. ### Per site | Site | What changes | Effort | | --- | --- | --- | | play-2600 | Touch paddle strip (below); Enter/Right Shift aliases for Game Reset/Select; R3 pause; F9 mute; help lists A/D, Z/X and J/L for paddles | medium | | play-nes | F2 reset alias; R3 pause; F9 mute (not while a Famicom keyboard is plugged) | small | | play-gb | R3 pause; F9 mute; connect notice | small | | play-md | Hat switch; Pause key; F2 reset; Right Shift Mode; Mode pill; start pill top-left on its side; R3 pause; F9 mute: small. Save states, rewind, run-ahead: need a save state in the board, which per the charter starts in megadrive-python and comes down the tiers: **large**, and its own piece of work | small now; large for states | | play-pce | Hat switch; run-ahead to Off/1/2; R3 pause; F9 mute: small. Rewind: the wrapper has `save_state`/`load_state` and run-ahead already, so a ring of states in the worker as play-nes keeps: medium | medium | | emu-galaga | Pause button in the bar; drop Esc; Enter/Right Shift aliases; every face button fires; pills top-left; settings key rename with migration; "Controller" naming in help; F5/F7 on top of the auto-save (the board has `save_state`) | small | | galaga-remix | As emu-galaga, plus N, T, F in the help | small | | z80-wasm | A/D, Z, C aliases; pause in the play view's bar; remember volume and mute; pills top-left. A save state needs one in its bindings (it has snapshots for rewind already, so close): medium | small; medium for states | ### play-2600 touch paddles **When it shows.** Whenever the running game's controllers are `paddles`, from any source: the game's own defaults (`GAME_DEFAULTS`), or the player's choice in Settings, which is already remembered per SHA-1. That is "a game we can tell uses a paddle": the page never guesses beyond what the table and the player say. *provisional* **Where it goes.** - **Portrait: above the touch controls**, directly under the picture, the picture's exact width, about 3.5rem tall. Above, not below, because (1) the finger then sits right under the bat, which on Big Top Bounce is at the bottom of the play area; (2) the bottom edge of a phone is the system's home gesture on iPhone and on gesture-navigation Android, and a sideways drag there swaps apps. The picture's height budget grows from 17rem to about 20.5rem in paddle mode. - **On its side:** the picture gives up the strip's height (`tv` height = `100dvh` − strip) and the strip lies under it, the picture's width, so the thumb never covers the bat. The d-pad hides in paddle mode (its left/right is the slow sweep, not needed with a strip); FIRE stays bottom-right over the black side; Select/Reset stay top-left. *provisional* **How it maps: absolute, not relative.** The finger's X along the strip is the paddle's position, exactly as the mouse over the picture is now: left end = turned fully left (the range's high resistance), right end = low, over the game's `paddleRange`. Why: - A real paddle is an absolute knob: where it is turned is where the bat is. Absolute keeps that, and keeps touch, mouse and stick one mapping (one function, `paddleResistance`). - With the strip as wide as the picture and the range set so the picture's edges reach the walls (Big Top Bounce's `[0, 0.28]` was MEASURED for exactly that), the finger is under the bat: no learning, no drift. - Relative drag needs re-centring (lift and re-grab) to cross the screen and has no fixed place for "the wall"; it buys finer control, which a 300-400 px strip over a 160-clock-wide picture does not need (about two to two and a half CSS pixels per colour clock on a phone). - Lifting the finger leaves the paddle where it is, as letting go of a knob does. **Fingers.** The finger that lands on the strip owns it until lifted, even if it slides off the strip (as the d-pad's does); it never presses buttons it slides over. FIRE is pressed by the other thumb. The strip joins the existing `onTouches` recompute, with its own finger set beside `dpadFingers`. A small marker on the strip shows the paddle's position. **Fire.** The pad's FIRE button, as now, for paddle 1. Touching the strip does not fire (the mouse's click does, because a mouse has no second thumb). *provisional* **One paddle or two.** One strip, for paddle 1. Two players on one phone (Warlords, Video Olympics) would want a second strip and FIRE upside down at the top, which is a different layout; keep it out unless Aubrey wants it (open question). Paddles 2-4 stay on controllers 2-4 and the J/L keys. **Coverage of the SHA-1 table today: one game** (Big Top Bounce). The commercial paddle catalogue is a few dozen titles (Breakout, Super Breakout, Kaboom!, Warlords, Circus Atari, Video Olympics, Street Racer, Canyon Bomber, Casino, Night Driver, Steeplechase, Demons to Diamonds, and more); none is detected now. To widen it without copying anyone's database: - Stella's properties database is GPL-2.0 and closed box only (sources.md): it must not be read or transcribed. - Instead, a small tool (`scripts/paddle-table.mjs`, *provisional*) takes a list of titles we write ourselves (titles are facts, from the games' own manuals and boxes) and hashes the matching files in the player's own `$NO_INTRO_DIR`, writing `web/paddle-games.json` (SHA-1 → `{ controllers: "paddles" }`). Hashes of files are facts about them; no ROM is shipped. Add the No-Intro set's use as a data source to sources.md when this is done. - A later, separate idea (HYPOTHESIS, not proposed for now): the wrapper could notice a program that dumps the pot capacitors (VBLANK bit 7) and then reads INPT0-INPT3 and offer "This game seems to use paddles: switch?". Joystick games also write VBLANK bit 7, so this needs measuring against a set before it is trusted. ### Shared code The sites are separate private repositories with no build step (plain ES modules beside a wasm-pack `pkg/`). A package (npm or a git submodule) would add a build or a checkout step to every deploy for about 200 lines. **Proposed: a copied file**, `web/controls.js`, with play-nes as its home (its README is already the recipe the others follow). It holds what is the same everywhere: `hatWord`, the pad reader by position (`padButtons(pad)` returning named positions), the touch recompute with its finger sets (d-pad, lever, strip), the bar's hold-to-rewind, the page-key table (F2/F5/F7/F8/F9/P/Pause/Backspace) and the focus and blur release. Each site keeps its own button-to-bit table and its help. Each copy's first lines name its source commit (`// controls.js from play-nes `), and a short `scripts/controls-drift.sh` in play-nes diffs the copies in the sibling checkouts. If it ever grows past a few hundred lines or gets a second kind of consumer, move it to emu-tools (MIT) as a real package. *provisional* ### Decided (Aubrey, 2026-11-23) - Rewind on the keyboard: **R** held (Backspace stays as an alias). - Haptics: a Settings switch that starts **off** (Android only). - Paddles on the phone: **one** strip, paddle 1. - Mega Drive save states: **on megadrive-python's list now** (then the Rust tiers, then play-md's save, rewind and run-ahead). - Pause on a controller: **R3**. ### Open questions for Aubrey (answered above) 1. **Haptics:** a short buzz on each button press, on the phones that allow it (Android; iPhones cannot)? If yes, on by default or a Settings switch that starts off? 2. **Two players on one phone for paddle games** (a second strip and FIRE at the top for the player opposite): wanted, or one paddle on the phone is enough? 3. **play-md's save states, rewind and run-ahead** need save states in the Mega Drive board, starting in megadrive-python: put that on the board's list now, or leave play-md as it is? 4. **Pause on a controller** as the right stick press (R3), since the shoulders are game buttons on the Mega Drive and PC Engine: acceptable, or would you rather press Select + Start together (which the PC Engine's games read as reset)?