Expand description
The pads: 2-button, 6-button and the 5-player multitap (the mouse is not modelled: U12)
(pads.py).
All implement sockets::ControllerPort: the console drives SEL and CLR, the device answers a
nibble on D3-D0 (active low: 0 = pressed). Held-button state is a bit mask the host sets.
Sources: [hw: pcetech 4] for the 2-button pad and the Turbo Tap; [doc: pce-devel PCE_Controller_Info] for the 6-button scan counting and the multitap port table.
Differences forced by Rust: Pad6 holds a Pad2’s mask where the reference subclasses it;
the host sets pressed through ControllerPort::set_pressed (the board owns the device).
Structs§
- Multi
Tap - The Turbo Tap: a counter picks which of five ports answers.
- Pad2
- A 2-button pad: SEL high shows the directions, SEL low the buttons.
- Pad6
- The Avenue Pad 6 shape: on alternating scans (counted by CLR pulses) the SEL-high read shows 0000 and the SEL-low read shows III-VI instead of I, II, Select, Run. [doc: controller-info] Which scan comes first at power-up is not stated (a game scans twice).