From a330577630ed3e9c54ca066039d5c53c270c3e3c Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 14 Nov 2015 22:06:24 -0800 Subject: Fix Mega Drive peripheral ID for 3-button pad --- io.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index c43281f..5b77c1b 100644 --- a/io.c +++ b/io.c @@ -935,6 +935,9 @@ uint8_t io_data_read(io_port * port, uint32_t current_cycle) case IO_GAMEPAD3: { input = port->input[th ? GAMEPAD_TH1 : GAMEPAD_TH0]; + if (!th) { + input |= 0xC; + } break; } case IO_GAMEPAD6: -- cgit v1.2.3