summaryrefslogtreecommitdiff
path: root/source/main.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2023-01-12 21:59:56 +0000
committerIan C <ianc@noddybox.co.uk>2023-01-12 21:59:56 +0000
commitb5839e35b2719828e47475c91720a741b2b32ec0 (patch)
tree696b9b426007413b0e83d4cf076315714ec69317 /source/main.c
parentc6d6e07bb10beb7de3416de40bc3c2a9b1c739ec (diff)
Changed keys in debug screens (to save bouncing the A key if used to select)
Diffstat (limited to 'source/main.c')
-rw-r--r--source/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/main.c b/source/main.c
index 355bf31..76c6f43 100644
--- a/source/main.c
+++ b/source/main.c
@@ -279,7 +279,7 @@ static void DebugDisassembler(Z80 *cpu)
while(SK_GetBareEvent(&ev))
{
- if (!ev.pressed)
+ if (ev.pressed)
{
switch(ev.key)
{
@@ -303,7 +303,7 @@ static void DebugDisassembler(Z80 *cpu)
done = TRUE;
break;
- case SK_PAD_A:
+ case SK_PAD_B:
{
char addrstr[32] = {0};
@@ -377,7 +377,7 @@ static void DebugMemory(Z80 *cpu)
while(SK_GetBareEvent(&ev))
{
- if (!ev.pressed)
+ if (ev.pressed)
{
switch(ev.key)
{
@@ -401,7 +401,7 @@ static void DebugMemory(Z80 *cpu)
done = TRUE;
break;
- case SK_PAD_A:
+ case SK_PAD_B:
{
char addrstr[32] = {0};
@@ -578,14 +578,14 @@ static void DebugCPU(Z80 *cpu)
FB_EndFrame();
- if (SK_KeyPressed(SK_PAD_B))
+ if (SK_KeyPressed(SK_PAD_X))
{
Z80SingleStep(cpu);
}
while(SK_GetBareEvent(&ev))
{
- if (!ev.pressed)
+ if (ev.pressed)
{
switch(ev.key)
{
@@ -608,7 +608,7 @@ static void DebugCPU(Z80 *cpu)
done = TRUE;
break;
- case SK_PAD_A:
+ case SK_PAD_B:
Z80SingleStep(cpu);
break;