Fixed undefined key access in test program.

This commit is contained in:
Philipp Wiesemann 2015-05-21 21:25:14 +02:00
parent 6365381422
commit 39d27a6380

View File

@ -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();