From 172187a42274b4860a3abc6e7ca33a338a6b8354 Mon Sep 17 00:00:00 2001 From: sverx Date: Wed, 15 Oct 2025 09:41:33 +0200 Subject: [PATCH] Update coleco.cpp - second controller should work now not really an expert here, but this seems to fix the basic functionality of the second controller --- meka/srcs/coleco.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meka/srcs/coleco.cpp b/meka/srcs/coleco.cpp index 1cdfa348..0e69dca9 100644 --- a/meka/srcs/coleco.cpp +++ b/meka/srcs/coleco.cpp @@ -96,7 +96,7 @@ byte Coleco_Inputs (word Port) // Player 2 if (sms.Input_Mode == 0) return (Coleco_Keypad_2 ()); - return (Coleco_Joy_Table_Conv [(tsms.Control[7] >> 8) & 0x3F]); + return (Coleco_Joy_Table_Conv [(tsms.Control[7] >> 6) & 0x3F]); } } @@ -128,7 +128,7 @@ byte Coleco_Keypad_1() byte Coleco_Keypad_2() { int v = 0x0F; - if ((tsms.Control[7] >> 8) & 0x20) + if ((tsms.Control[7] >> 6) & 0x20) v |= 0x40; return (v | 0x10 | 0x20 /*| 0x80*/); } @@ -217,3 +217,4 @@ word Loop_Coleco() //----------------------------------------------------------------------------- +