diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2021-07-20 21:22:31 +0100 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2021-07-20 21:22:47 +0100 |
commit | 48a06eb30e92095b465c73d4c06b925c29f0c73e (patch) | |
tree | a893b6f1c60fd8ca7f4c29b944fac49824be4ded /main.c | |
parent | Refractoring: Refractored the stepping of the PC into a function (diff) | |
download | CHIP8-Emulator-48a06eb30e92095b465c73d4c06b925c29f0c73e.tar.gz CHIP8-Emulator-48a06eb30e92095b465c73d4c06b925c29f0c73e.tar.bz2 CHIP8-Emulator-48a06eb30e92095b465c73d4c06b925c29f0c73e.zip |
Refractoring: Refractored the Makefile to make use of pkg-config
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c index 9f5dd1b..90e4bb2 100644 --- a/main.c +++ b/main.c @@ -1,5 +1,5 @@ #include <emulator.h> -#include "/usr/local/include/SDL2/SDL.h" +#include <SDL.h> int main(int argc, char** argv); void show_help(); @@ -37,6 +37,10 @@ int main(int argc, char** argv) goto exit; if(event.type == SDL_WINDOWEVENT) SDL_RenderPresent(renderer); + /*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_tick(&emulator); |