diff --git a/src/keyboard.c b/src/keyboard.c index a845590..1fe1172 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -8,8 +8,11 @@ #include #include +#include "cpu.h" #include "keyboard.h" +extern fox32_vm_t vm; + typedef struct node_s { struct node_s *prev; struct node_s *next; @@ -150,6 +153,7 @@ keycode_t key_convert(int sdlcode) { } void key_pressed(int sdlcode) { + if (sdlcode == SDL_SCANCODE_F11) vm.debug = !vm.debug; keycode_t code = key_convert(sdlcode); if (code) key_put(code); }