mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-08 23:20:12 +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) {
|
bool handleKey(int sym, int uni) {
|
||||||
/*
|
if(cmode & sm::NORMAL) {
|
||||||
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)) {
|
|
||||||
char* t = multi::scfg.keyaction;
|
char* t = multi::scfg.keyaction;
|
||||||
if(t[sym] >= 16 && t[sym] < 32) return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user