mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 12:19:18 +00:00
ads-game:: easier to invoke menu
This commit is contained in:
parent
8a35e6facb
commit
11b70006aa
@ -81,22 +81,13 @@ void fire() {
|
||||
}
|
||||
|
||||
bool handleKey(int sym, int uni) {
|
||||
/*
|
||||
if(uni == 'p') paused = !paused;
|
||||
|
||||
if(among(uni, 'a', 'd', 's', 'w')) return true;
|
||||
|
||||
if(uni == 't') { view_proper_times = !view_proper_times; return true; }
|
||||
if(uni == 'o') { auto_rotate = !auto_rotate; return true; }
|
||||
|
||||
if(uni == 'f') fire();
|
||||
*/
|
||||
|
||||
if(sym > 0 && sym < 512 && (cmode & sm::NORMAL)) {
|
||||
if(cmode & sm::NORMAL) {
|
||||
char* t = multi::scfg.keyaction;
|
||||
if(t[sym] >= 16 && t[sym] < 32) return true;
|
||||
if(sym == 'v') pushScreen(game_menu);
|
||||
if(sym == SDLK_ESCAPE) pushScreen(game_menu);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user