mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 06:27:17 +00:00
vertical sliders work on Android
This commit is contained in:
parent
9bc978ce16
commit
902986d473
@ -92,6 +92,11 @@ void handleclick(MOBPAR_FORMAL) {
|
||||
getcstat = 0;
|
||||
}
|
||||
|
||||
else if(statkeys && getcstat == 'f') {
|
||||
bow::switch_fire_mode();
|
||||
getcstat = 0;
|
||||
}
|
||||
|
||||
else if(getcstat != SDLK_F1 && getcstat != 'i' && getcstat != 't') {
|
||||
int px = mousex < current_display->xcenter ? 0 : 1;
|
||||
int py = mousey < current_display->ycenter ? 0 : 1;
|
||||
@ -290,6 +295,8 @@ EX void mobile_draw(MOBPAR_FORMAL) {
|
||||
|
||||
if(inmenu && !clicked && !lclicked) inmenu = false;
|
||||
|
||||
if(!clicked && !lclicked) invslider = false;
|
||||
|
||||
bool keyreact = lclicked && !clicked;
|
||||
|
||||
#if CAP_MENUSCALING
|
||||
@ -302,6 +309,7 @@ EX void mobile_draw(MOBPAR_FORMAL) {
|
||||
#endif
|
||||
|
||||
if(inslider) keyreact = true;
|
||||
if(invslider || getcstat == PSEUDOKEY_LIST_SLIDER) keyreact = true;
|
||||
|
||||
#if CAP_ANDROIDSHARE
|
||||
if(getcstat == 's'-96 && keyreact) {
|
||||
|
Loading…
Reference in New Issue
Block a user