diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c index d061a59..e0529b7 100644 --- a/main.c +++ b/main.c @@ -37,10 +37,10 @@ int main(int argc, char** argv) goto exit; if(event.type == SDL_WINDOWEVENT) SDL_RenderPresent(renderer); - /*if(event.type == SDL_KEYDOWN) + if(event.type == SDL_KEYDOWN) emulator_handle_key_press(&emulator, event.key.keysym.sym); if(event.type == SDL_KEYUP) - emulator_handle_key_release(&emulator, event.key.keysym.sym);*/ + emulator_handle_key_release(&emulator, event.key.keysym.sym); } emulator_tick(&emulator); |