mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-24 22:46:03 +00:00
touch-based rug movement in android
This commit is contained in:
9
init.cpp
9
init.cpp
@@ -751,10 +751,17 @@ void mobile_draw(MOBPAR_FORMAL) {
|
||||
#endif
|
||||
|
||||
if(clicked && lclicked && andmode == 1 && (cmode & sm::NORMAL)) {
|
||||
if(!mouseout2() && mouseoh[2] < 50 && mouseh[2] < 50) {
|
||||
if(!mouseout2() && mouseoh[2] < 50 && mouseh[2] < 50 && !rug::rugged) {
|
||||
panning(mouseoh, mouseh);
|
||||
}
|
||||
}
|
||||
|
||||
static int lticks_rug;
|
||||
|
||||
if(andmode == 1 && !inmenu && rug::rugged && clicked)
|
||||
rug::move_forward((ticks - lticks_rug) / 2500);
|
||||
|
||||
lticks_rug = ticks;
|
||||
|
||||
if(andmode == 1 && lclicked && !clicked && !inmenu && mouseover)
|
||||
performMarkCommand(mouseover);
|
||||
|
||||
Reference in New Issue
Block a user