Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions meka/srcs/coleco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}

Expand Down Expand Up @@ -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*/);
}
Expand Down Expand Up @@ -217,3 +217,4 @@ word Loop_Coleco()

//-----------------------------------------------------------------------------