Factory-reference switches, CPU inputs and topper inputs
pinmame.input.switch
- 0 … 9596 slots
- 101 … 13232 slots
- libpinmamechannel=switch
- controller_plugingroup_id=5 · contract_revision=46e1a01a0f73
Technical details for Factory-reference switches, CPU inputs and topper inputsSource-derived address behavior and exceptions
The conversion exposes 128 matrix positions as public 0-95 and 101-132; documented game Switch Reference numbers start at 1. Each title swaps its declared flipper buttons and EOS numbers with internal slots 88-95, so consumers use the title's public references directly. CPU DIP inputs are 101-108, Service Select/Plus/Minus/Back are 109/110/111/112, and the power interlock is 116 (1 while the door is shut). Optional topper references start at 121. The conversion admits padding and reserved positions; conversion alone does not prove that a game reads or fits an input. Numbers outside the stated ranges all alias internal position 127 (public 132) and must not be used as extra addresses. Public nonzero means the subsystem's closed state; per-game invSw remains zero and the subsystem converts this state to the ROM's wire level with switch-table flags. Startup closed state includes installed trough balls, firmware rest flags and the power interlock; it does not establish physical normally_closed construction. DIP switch writes to 101-108 are replaced from DIP bank 0 at each 1 kHz I/O exchange. The core synthesizes lower EOS from the lower flipper mirrors after two VBLANKs and overwrites direct EOS writes. With keyboard handling disabled, declared lower and upper button leaves round-trip; with it enabled, keyboard state rewrites them and upper leaves follow the lower keys. Cabinet and service inputs are rewritten only while keyboard handling is enabled. Internal motor and stepper home state is generated in the subsystem, but the driver copies that state to the public matrix only during initial mapping; public input readback does not prove later internally generated sensor movement.