Fixed undefined key access in test program.
This commit is contained in:
parent
cc1d46d30e
commit
a5c372da01
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ loop()
|
|||
return;
|
||||
}
|
||||
|
||||
if(e.key.keysym.sym == SDLK_ESCAPE) {
|
||||
if ((e.type == SDL_KEYDOWN) && (e.key.keysym.sym == SDLK_ESCAPE)) {
|
||||
done = 1;
|
||||
#ifdef __EMSCRIPTEN__
|
||||
emscripten_cancel_main_loop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue