From 04a33600dabbc78201151007c52f52a71cff6844 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Sat, 21 Mar 2020 08:43:56 -0400 Subject: [PATCH] O2Hawk: fix the keyboard --- .../Magnavox/Odyssey2/O2Hawk.IEmulator.cs | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Magnavox/Odyssey2/O2Hawk.IEmulator.cs b/BizHawk.Emulation.Cores/Consoles/Magnavox/Odyssey2/O2Hawk.IEmulator.cs index 22eee10652..52a1b25e05 100644 --- a/BizHawk.Emulation.Cores/Consoles/Magnavox/Odyssey2/O2Hawk.IEmulator.cs +++ b/BizHawk.Emulation.Cores/Consoles/Magnavox/Odyssey2/O2Hawk.IEmulator.cs @@ -127,52 +127,52 @@ namespace BizHawk.Emulation.Cores.Consoles.O2Hawk controller_state_2 = _controllerDeck.ReadPort2(controller); kb_state_row = 8; // nothing pressed - if (controller.IsPressed("0")) { kb_state_row = 0; kb_state_col = 0; } - if (controller.IsPressed("1")) { kb_state_row = 0; kb_state_col = 1; } - if (controller.IsPressed("2")) { kb_state_row = 0; kb_state_col = 2; } - if (controller.IsPressed("3")) { kb_state_row = 0; kb_state_col = 3; } - if (controller.IsPressed("4")) { kb_state_row = 0; kb_state_col = 4; } - if (controller.IsPressed("5")) { kb_state_row = 0; kb_state_col = 5; } - if (controller.IsPressed("6")) { kb_state_row = 0; kb_state_col = 6; } - if (controller.IsPressed("7")) { kb_state_row = 0; kb_state_col = 7; } - if (controller.IsPressed("8")) { kb_state_row = 1; kb_state_col = 0; } - if (controller.IsPressed("9")) { kb_state_row = 1; kb_state_col = 1; } - if (controller.IsPressed("SPC")) { kb_state_row = 1; kb_state_col = 4; } - if (controller.IsPressed("?")) { kb_state_row = 1; kb_state_col = 5; } - if (controller.IsPressed("L")) { kb_state_row = 1; kb_state_col = 6; } - if (controller.IsPressed("P")) { kb_state_row = 1; kb_state_col = 7; } - if (controller.IsPressed("+")) { kb_state_row = 2; kb_state_col = 0; } - if (controller.IsPressed("W")) { kb_state_row = 2; kb_state_col = 1; } - if (controller.IsPressed("E")) { kb_state_row = 2; kb_state_col = 2; } - if (controller.IsPressed("R")) { kb_state_row = 2; kb_state_col = 3; } - if (controller.IsPressed("T")) { kb_state_row = 2; kb_state_col = 4; } - if (controller.IsPressed("U")) { kb_state_row = 2; kb_state_col = 5; } - if (controller.IsPressed("I")) { kb_state_row = 2; kb_state_col = 6; } - if (controller.IsPressed("O")) { kb_state_row = 2; kb_state_col = 7; } - if (controller.IsPressed("Q")) { kb_state_row = 3; kb_state_col = 0; } - if (controller.IsPressed("S")) { kb_state_row = 3; kb_state_col = 1; } - if (controller.IsPressed("D")) { kb_state_row = 3; kb_state_col = 2; } - if (controller.IsPressed("F")) { kb_state_row = 3; kb_state_col = 3; } - if (controller.IsPressed("G")) { kb_state_row = 3; kb_state_col = 4; } - if (controller.IsPressed("H")) { kb_state_row = 3; kb_state_col = 5; } - if (controller.IsPressed("J")) { kb_state_row = 3; kb_state_col = 6; } - if (controller.IsPressed("K")) { kb_state_row = 3; kb_state_col = 7; } - if (controller.IsPressed("A")) { kb_state_row = 4; kb_state_col = 0; } - if (controller.IsPressed("Z")) { kb_state_row = 4; kb_state_col = 1; } - if (controller.IsPressed("X")) { kb_state_row = 4; kb_state_col = 2; } - if (controller.IsPressed("C")) { kb_state_row = 4; kb_state_col = 3; } - if (controller.IsPressed("V")) { kb_state_row = 4; kb_state_col = 4; } - if (controller.IsPressed("B")) { kb_state_row = 4; kb_state_col = 5; } - if (controller.IsPressed("M")) { kb_state_row = 4; kb_state_col = 6; } - if (controller.IsPressed(".")) { kb_state_row = 4; kb_state_col = 7; } - if (controller.IsPressed("-")) { kb_state_row = 5; kb_state_col = 0; } - if (controller.IsPressed("*")) { kb_state_row = 5; kb_state_col = 1; } - if (controller.IsPressed("/")) { kb_state_row = 5; kb_state_col = 2; } - if (controller.IsPressed("=")) { kb_state_row = 5; kb_state_col = 3; } - if (controller.IsPressed("YES")) { kb_state_row = 5; kb_state_col = 4; } - if (controller.IsPressed("NO")) { kb_state_row = 5; kb_state_col = 5; } - if (controller.IsPressed("CLR")) { kb_state_row = 5; kb_state_col = 6; } - if (controller.IsPressed("ENT")) { kb_state_row = 5; kb_state_col = 7; } + if (controller.IsPressed("0")) { kb_state_row = 0; kb_state_col = 7; } + if (controller.IsPressed("1")) { kb_state_row = 0; kb_state_col = 6; } + if (controller.IsPressed("2")) { kb_state_row = 0; kb_state_col = 5; } + if (controller.IsPressed("3")) { kb_state_row = 0; kb_state_col = 4; } + if (controller.IsPressed("4")) { kb_state_row = 0; kb_state_col = 3; } + if (controller.IsPressed("5")) { kb_state_row = 0; kb_state_col = 2; } + if (controller.IsPressed("6")) { kb_state_row = 0; kb_state_col = 1; } + if (controller.IsPressed("7")) { kb_state_row = 0; kb_state_col = 0; } + if (controller.IsPressed("8")) { kb_state_row = 1; kb_state_col = 7; } + if (controller.IsPressed("9")) { kb_state_row = 1; kb_state_col = 6; } + if (controller.IsPressed("SPC")) { kb_state_row = 1; kb_state_col = 3; } + if (controller.IsPressed("?")) { kb_state_row = 1; kb_state_col = 2; } + if (controller.IsPressed("L")) { kb_state_row = 1; kb_state_col = 1; } + if (controller.IsPressed("P")) { kb_state_row = 1; kb_state_col = 0; } + if (controller.IsPressed("+")) { kb_state_row = 2; kb_state_col = 7; } + if (controller.IsPressed("W")) { kb_state_row = 2; kb_state_col = 6; } + if (controller.IsPressed("E")) { kb_state_row = 2; kb_state_col = 5; } + if (controller.IsPressed("R")) { kb_state_row = 2; kb_state_col = 4; } + if (controller.IsPressed("T")) { kb_state_row = 2; kb_state_col = 3; } + if (controller.IsPressed("U")) { kb_state_row = 2; kb_state_col = 2; } + if (controller.IsPressed("I")) { kb_state_row = 2; kb_state_col = 1; } + if (controller.IsPressed("O")) { kb_state_row = 2; kb_state_col = 0; } + if (controller.IsPressed("Q")) { kb_state_row = 3; kb_state_col = 7; } + if (controller.IsPressed("S")) { kb_state_row = 3; kb_state_col = 6; } + if (controller.IsPressed("D")) { kb_state_row = 3; kb_state_col = 5; } + if (controller.IsPressed("F")) { kb_state_row = 3; kb_state_col = 4; } + if (controller.IsPressed("G")) { kb_state_row = 3; kb_state_col = 3; } + if (controller.IsPressed("H")) { kb_state_row = 3; kb_state_col = 2; } + if (controller.IsPressed("J")) { kb_state_row = 3; kb_state_col = 1; } + if (controller.IsPressed("K")) { kb_state_row = 3; kb_state_col = 0; } + if (controller.IsPressed("A")) { kb_state_row = 4; kb_state_col = 7; } + if (controller.IsPressed("Z")) { kb_state_row = 4; kb_state_col = 6; } + if (controller.IsPressed("X")) { kb_state_row = 4; kb_state_col = 5; } + if (controller.IsPressed("C")) { kb_state_row = 4; kb_state_col = 4; } + if (controller.IsPressed("V")) { kb_state_row = 4; kb_state_col = 3; } + if (controller.IsPressed("B")) { kb_state_row = 4; kb_state_col = 2; } + if (controller.IsPressed("M")) { kb_state_row = 4; kb_state_col = 1; } + if (controller.IsPressed(".")) { kb_state_row = 4; kb_state_col = 0; } + if (controller.IsPressed("-")) { kb_state_row = 5; kb_state_col = 7; } + if (controller.IsPressed("*")) { kb_state_row = 5; kb_state_col = 6; } + if (controller.IsPressed("/")) { kb_state_row = 5; kb_state_col = 5; } + if (controller.IsPressed("=")) { kb_state_row = 5; kb_state_col = 4; } + if (controller.IsPressed("YES")) { kb_state_row = 5; kb_state_col = 3; } + if (controller.IsPressed("NO")) { kb_state_row = 5; kb_state_col = 2; } + if (controller.IsPressed("CLR")) { kb_state_row = 5; kb_state_col = 1; } + if (controller.IsPressed("ENT")) { kb_state_row = 5; kb_state_col = 0; } }