★ FAQ ★ SGL programming related0: SATURN port 1 or multi-tap 1 connected to port 1 | 5: Port 1 multi-tap No. 6 | (Reservation) 14: Port 1 multi-tap 15 15: SATURN port 2 or multi-tap 1 connected to port 2 | 19: Port 2 multi-tap No. 6 | (Reservation) 29: Port 2 multi-tap No. 15Will be.
Peripheral data itself is referenced by the same variable regardless of the device type. For non-digital devices, cast according to the type.
| PerAnalog: | For racing controllers and mission sticks |
| PerPoint: | For mouse |
| PerKeyBoard: | For keyboard |
PER_ID_StnPad 0x02 / * Saturn standard pad * / PER_ID_StnLacing 0x13 / * Saturn Racing Controller * / PER_ID_StnAnalog 0x15 / * Saturn analog joystick * / PER_ID_StnKeyBoard 0x34 / * Saturn Keyboard * / PER_ID_MD3BtnPad 0xe1 / * Mega Drive 3 Button Pad * / PER_ID_MD6BtnPad 0xe2 / * Mega Drive 6 Button Pad * / PER_ID_ShuttleMouse 0xe3 / * Shuttle Mouse * / PER_ID_NotConnect 0xff / * Not connected * /
typedef struct {/ * Marcon * /
Uint8 id; / * Peripheral ID * /
Uint8 ext; / * Extended data size * /
Uint16 data; / * Button current data * /
Uint16 push; / * Button press data * /
Uint16 pull; / * Button pull data * /
Uint8 x; / * X-axis data absolute value * /
Uint8 y; / * Absolute value of Y-axis data * /
Uint8 r; / * Absolute value of R-axis data * /
Uint8 l; / * Absolute value of L-axis data * /
Uint32 dummy2 [3]; / * Dummy 2 * /
} PerMultiControler;
★ FAQ ★ SGL programming related