commodore64: fix input for some keys

This commit is contained in:
saxxonpike 2012-11-13 20:54:51 +00:00
parent 05420cf6ec
commit 98902b1a4a
1 changed files with 3 additions and 1 deletions

View File

@ -81,7 +81,7 @@ namespace BizHawk.Emulation.Computers.Commodore64
private void UpdatePortData()
{
int keyboardShift = keyboardRowData;
int keyboardShift = keyboardColumnData;
byte port0result = 0xFF;
byte port1result = 0xFF;
@ -90,7 +90,9 @@ namespace BizHawk.Emulation.Computers.Commodore64
for (int i = 0; i < 8; i++)
{
if ((keyboardShift & 0x01) == 0x00)
{
port1result &= keyboardLatch[i];
}
keyboardShift >>= 1;
}
port1result &= joystickLatch[0];