oop lol
This commit is contained in:
parent
b798e4727f
commit
e93e222c52
1 changed files with 3 additions and 1 deletions
4
main.c
4
main.c
|
@ -421,7 +421,7 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) {
|
|||
switch (event->type) {
|
||||
case SDL_EVENT_QUIT:
|
||||
SDL_Log("Quit!");
|
||||
return false;
|
||||
return SDL_APP_SUCCESS;
|
||||
|
||||
case SDL_EVENT_KEY_DOWN:
|
||||
switch (event->key.key) {
|
||||
|
@ -444,6 +444,8 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) {
|
|||
|
||||
default: break;
|
||||
}
|
||||
|
||||
return SDL_APP_CONTINUE;
|
||||
}
|
||||
|
||||
switch (event->type) {
|
||||
|
|
Loading…
Add table
Reference in a new issue