Can use ESC or 'Q' to quit now.

For those who don't know the system shortcut for closing a window.
This commit is contained in:
Nicolás Ortega Froysa 2018-10-25 23:33:55 +02:00
parent 30c0bdb23b
commit 72e2b3dd09
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -93,6 +93,9 @@ void input::set_key(SDL_Keysym key, bool value) {
case SDLK_d: case SDLK_d:
actions["move_right"] = value; actions["move_right"] = value;
break; break;
case SDLK_ESCAPE:
case SDLK_q:
actions["quit"] = value;
default: default:
break; break;
} }