fixed input with keyboard and controller at the same time
This commit is contained in:
parent
d8fa53801b
commit
eabeb55115
11 changed files with 95 additions and 68 deletions
2
main.cpp
2
main.cpp
|
@ -72,6 +72,6 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
|||
/* This function runs once at shutdown. */
|
||||
void SDL_AppQuit(void *appstate, SDL_AppResult result)
|
||||
{
|
||||
delete appstate;
|
||||
delete (Game*)appstate;
|
||||
/* SDL will clean up the window/renderer for us. */
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue