summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-14 22:06:24 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-14 22:06:24 -0800
commita330577630ed3e9c54ca066039d5c53c270c3e3c (patch)
treee409b971b55c93dcdf6b2b5af6c7994ee8416755 /io.c
parentbe9d7aa532f6ac9f6550adb454ae6c801f15373c (diff)
Fix Mega Drive peripheral ID for 3-button pad
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
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: