- // List of keys that have been pressed
- case SDL_KEYDOWN:
- switch (Event.key.keysym.sym) {
- // Escape forces us to quit the app
- // this is also sent when the user makes a back gesture
- case SDLK_ESCAPE:
- Event.type = SDL_QUIT;
- break;
- default:
- break;
- }
- break;