O2Hawk: fix the keyboard

This commit is contained in:
alyosha-tas 2020-03-21 08:43:56 -04:00
parent e1951b9fc5
commit 04a33600da
1 changed files with 46 additions and 46 deletions

View File

@ -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; }
}