@@ -41,12 +41,12 @@ static int input_process_events(void) {
4141 int response = CONTINUE ;
4242
4343 /* cose when the user clicks 'X' */
44- if (input .event .type == SDL_QUIT ) response = USER_QUIT ;
44+ if (input .event .type == SDL_QUIT ) response = QUIT ;
4545
4646 /* keystroke events */
4747 if (input .event .type == SDL_KEYDOWN ) {
48- if (input .state [SDL_SCANCODE_ESCAPE ]) response = USER_QUIT ;
49- if (input .state [SDL_SCANCODE_F5 ]) response = SOFT_RESET ;
48+ if (input .state [SDL_SCANCODE_ESCAPE ]) response = QUIT ;
49+ if (input .state [SDL_SCANCODE_F5 ]) response = RESET ;
5050 if (input .state [SDL_SCANCODE_RETURN ]) display_toggle_fullscreen ();
5151 if (input .state [SDL_SCANCODE_P ]) {
5252 chip8 .paused = !chip8 .paused ;
@@ -78,7 +78,7 @@ static int input_process_events(void) {
7878 }
7979
8080 /* the window manager requests that the window be closed */
81- if (input .event .window .event == SDL_WINDOWEVENT_CLOSE ) response = USER_QUIT ;
81+ if (input .event .window .event == SDL_WINDOWEVENT_CLOSE ) response = QUIT ;
8282 }
8383
8484 return response ;
@@ -99,8 +99,8 @@ int input_poll(void) {
9999
100100 /* check GUI */
101101 gui_process_events (& input .event );
102- if (gui .quit_flag ) response |= USER_QUIT ;
103- if (gui .soft_reset_flag ) response |= SOFT_RESET ;
102+ if (gui .quit_flag ) response |= QUIT ;
103+ if (gui .reset_flag ) response |= RESET ;
104104 if (gui .load_rom_flag ) response |= LOAD_ROM ;
105105 if (gui .save_profile_flag ) response |= SAVE_PROFILE ;
106106
0 commit comments