We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a9ca13 commit 2b0cac3Copy full SHA for 2b0cac3
sources/src/main.d
@@ -115,7 +115,7 @@ int boot()
115
writefln("press c button - full screen");
116
for(int i1 = 0; i1 < 60; i1++){
117
SDL_Delay(16);
118
- SDL_PollEvent(&event);
+ while (SDL_PollEvent(&event)){}
119
getPAD();
120
}
121
@@ -150,9 +150,13 @@ int boot()
150
setTSK(GROUP_00,&TSKgctrl);
151
152
while(game_exec){
153
+ while (game_exec && SDL_PollEvent(&event)){
154
+ if(event.type == SDL_QUIT){
155
+ game_exec = 0;
156
+ }
157
158
- if((game_exec == 1 && (trgs & PAD_BUTTON9)) || event.type == SDL_QUIT){
159
+ if(game_exec == 1 && (trgs & PAD_BUTTON9)){
160
game_exec = 0;
161
162
if(!pause && game_exec == 2 && (trgs & PAD_BUTTON9)){
0 commit comments