From 98902b1a4aa90b58071ac713eda2ba1a3157fb8b Mon Sep 17 00:00:00 2001 From: saxxonpike Date: Tue, 13 Nov 2012 20:54:51 +0000 Subject: [PATCH] commodore64: fix input for some keys --- BizHawk.Emulation/Computers/Commodore64/Input.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Computers/Commodore64/Input.cs b/BizHawk.Emulation/Computers/Commodore64/Input.cs index 21a7875ae4..6a16ca43c4 100644 --- a/BizHawk.Emulation/Computers/Commodore64/Input.cs +++ b/BizHawk.Emulation/Computers/Commodore64/Input.cs @@ -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];