Playfield matrix, coin-door, diagnostic, EOS, and cabinet inputs
pinmame.input.switch
- 11 … 188 slots
- 21 … 288 slots
- 31 … 388 slots
- 41 … 488 slots
- 51 … 588 slots
- 61 … 688 slots
- 71 … 788 slots
- 81 … 888 slots
- 91 … 988 slots
- 101 … 1088 slots
- 111 … 1188 slots
- libpinmamechannel=switch
- controller_plugingroup_id=1 · contract_revision=a6f6d7266d30
Technical details for Playfield matrix, coin-door, diagnostic, EOS, and cabinet inputsSource-derived address behavior and exceptions
Playfield matrix
Addresses 11-88 use column-times-ten plus one-based row notation. Values ending in 9 or 0 are not matrix positions. PinMAME translates those public addresses through p2k_sw2m and p2k_m2sw.
Dedicated inputs
The board's 24 direct inputs are exposed as three public columns: printed D1-D8 become 91-98, D9-D16 become 101-108, and D17-D24 become 111-118. They carry coin, diagnostic, EOS, cabinet, and action-button inputs.
Polarity
P2K publishes every public switch active-high: 1 beam blocked, contact closed, or button pressed, and 0 inactive. The optos rest closed and the board reads them raw active-low, so MACHINE_INIT(p2k) declares the per-game opto list (p2k_optoList) in coreGlobals.invSw through core_updInvSw; core_getSw and core_setSw apply that inversion, so the board keeps its raw level while the public API is active-high for every switch, opto or not. Revisions before upstream ccba7199 instead published the optos at their raw active-low level and refreshed them to 1 every frame, so runtime evidence recorded on such a revision carries the opposite opto level. The profile's inversion_applied_by_emulator field means consumers use the public state exactly as delivered and apply no further inversion; a switch's normally_closed remains a construction fact about the contact.
Diagnostic keys
PinMAME's keyboard port maps keys 7, 8, 9 and 0 to Enter (public 104), Down (102), Up (103) and Escape (101). Before upstream 4ea35501 keys 8 and 9 were the other way round; the public switch numbers did not change.