changeset 888:bc127fa1f800

Fix Mega Drive peripheral ID for 3-button pad
author Michael Pavone <pavone@retrodev.com>
date Sat, 14 Nov 2015 22:06:24 -0800
parents fb4d09f874dd
children 2d1122123fe9
files io.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/io.c	Sat Nov 14 13:56:41 2015 -0800
+++ b/io.c	Sat Nov 14 22:06:24 2015 -0800
@@ -935,6 +935,9 @@
 	case IO_GAMEPAD3:
 	{
 		input = port->input[th ? GAMEPAD_TH1 : GAMEPAD_TH0];
+		if (!th) {
+			input |= 0xC;
+		}
 		break;
 	}
 	case IO_GAMEPAD6: