Dedicated inputs, decimal switch matrix and flipper-button column
pinmame.input.switch
- -8 … -18 slots
- 0 … 78 slots
- 10 … 178 slots
- 20 … 278 slots
- 30 … 378 slots
- 40 … 478 slots
- 50 … 578 slots
- 60 … 678 slots
- 70 … 778 slots
- 111 … 1188 slots
- libpinmamechannel=switch
Technical details for Dedicated inputs, decimal switch matrix and flipper-button columnSource-derived address behavior and exceptions
At PinMAME revision 46e1a01a0f73dc5ce163d98db1ae435883ecc450, GTS80_sw2m maps a canonical matrix number n in 00-77 to internal index ((n+1)%10)*8+(n+1)/10, using integer division. The tens digit is the strobe and the units digit the return. RIOT U4 scans internal columns 1-8 and reads their normalized bits without complementing them. The per-game inversion mask determines the relation to raw contacts; for an unmasked cell public 1 is the set bit the CPU reads. This alone does not prove physical construction or the ROM's active condition. Consumers must not apply a second controller-wide inversion.
The converter does not reject invalid decimal numbers and the native switch API does not bounds-check converted indices. Treat 8 and 9 in the units position, strobes above 7, and all other numbers outside the declared rules as unsupported, even where they alias an in-range bit. For example 80 aliases 01 and 120 aliases 118.
Dedicated -8 through -1 map to internal column 0. -1 is slam: an unmasked set slam bit makes the RIOT U5 input low; the read level depends on the game's mask. -4 reaches sndbrd_0_diag; when the selected interface is SNDBRD_GTS80B it has no diagnostic callback. Video controls -8 through -5 apply only to video display drivers, and -3/-2 have no corresponding selected input handler. Representation does not establish fitment. With keyboard handling enabled, the driver rewrites 07 Test, 17/27/37 Coin 1/2/3, 47 Start and 57 Tilt on every update; with keyboard disabled, direct writes to those positions persist. The CPU can also scan 67 and 77.
Internal flipper column 11 is 111-118: 112 is the lower right button and 114 the lower left button. When a game declares FLIP_SWNO(left,right), core_updateSw copies these button states to that game's declared matrix positions every update, overwriting direct host writes there. Copy destinations and FLIP_SOL/EOS flags must be read from each game's own declaration. Drive the public button positions rather than copied matrix positions. The CPU matrix scan does not read column 11 directly; other column bits alone do not prove fitted buttons or EOS contacts.