Colevo Fix controller 2

Kind of funny this went undetected for so long
This commit is contained in:
alyosha-tas 2017-02-11 19:40:57 -05:00 committed by GitHub
parent 6ae8a88658
commit 7d975f4028
1 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,5 @@
using BizHawk.Emulation.Common; using BizHawk.Emulation.Common;
using System;
namespace BizHawk.Emulation.Cores.ColecoVision namespace BizHawk.Emulation.Cores.ColecoVision
{ {
@ -45,7 +46,6 @@ namespace BizHawk.Emulation.Cores.ColecoVision
if (InputPortSelection == InputPortMode.Right) if (InputPortSelection == InputPortMode.Right)
{ {
byte retval = 0xF; byte retval = 0xF;
// 0x00; // 0x00;
if (Controller.IsPressed("P1 Key 8")) retval = 0x01; if (Controller.IsPressed("P1 Key 8")) retval = 0x01;
if (Controller.IsPressed("P1 Key 4")) retval = 0x02; if (Controller.IsPressed("P1 Key 4")) retval = 0x02;
@ -67,6 +67,7 @@ namespace BizHawk.Emulation.Cores.ColecoVision
return retval; return retval;
} }
return 0x7F; return 0x7F;
} }
@ -89,7 +90,6 @@ namespace BizHawk.Emulation.Cores.ColecoVision
if (InputPortSelection == InputPortMode.Right) if (InputPortSelection == InputPortMode.Right)
{ {
byte retval = 0xF; byte retval = 0xF;
// 0x00; // 0x00;
if (Controller.IsPressed("P2 Key 8")) retval = 0x01; if (Controller.IsPressed("P2 Key 8")) retval = 0x01;
if (Controller.IsPressed("P2 Key 4")) retval = 0x02; if (Controller.IsPressed("P2 Key 4")) retval = 0x02;