diff --git a/src/events.c b/src/events.c index e106ff7..30a8289 100644 --- a/src/events.c +++ b/src/events.c @@ -4,10 +4,12 @@ #include extern float displayScale; +extern int clocksteps; extern void resetSystem(); extern void irq6502(); extern void nmi6502(); +extern void step6502(); extern void updateRenderStates(); extern void scanKeyboard(); @@ -30,7 +32,6 @@ void pollEvents(sfRenderWindow *window){ case sfKeyEscape: sfRenderWindow_close(window); break; - case sfKeyF2: if (displayscale > 1) displayscale--; updateRenderStates(); @@ -42,6 +43,9 @@ void pollEvents(sfRenderWindow *window){ case sfKeyF5: resetSystem(); break; + case sfKeyF8: + for (int i = 0; i < clocksteps; i++) step6502(); + break; case sfKeyF12: irq6502(); break; @@ -55,6 +59,7 @@ void pollEvents(sfRenderWindow *window){ } break; case sfEvtKeyReleased: + // To tell keyboard.c, that no key is being pressed currentKey = sfKeyUnknown; break;