mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-24 14:36:02 +00:00
camera movement in mobile/orientation/DRAG
This commit is contained in:
10
init.cpp
10
init.cpp
@@ -387,14 +387,18 @@ void mobile_draw(MOBPAR_FORMAL) {
|
||||
displayTexts();
|
||||
#endif
|
||||
|
||||
static int lticks_rug;
|
||||
|
||||
if(clicked && lclicked && andmode == 1 && normal_reaction) {
|
||||
if(!mouseout2() && mouseoh[2] < 50 && mouseh[2] < 50 && !rug::rugged) {
|
||||
if(DIM == 3 && !rug::rugged) {
|
||||
View = cpush(2, -(ticks - lticks_rug) / 2500.) * View;
|
||||
playermoved = false;
|
||||
}
|
||||
else if(!mouseout2() && mouseoh[2] < 50 && mouseh[2] < 50 && !rug::rugged) {
|
||||
panning(mouseoh, mouseh);
|
||||
}
|
||||
}
|
||||
|
||||
static int lticks_rug;
|
||||
|
||||
#if CAP_RUG
|
||||
if(andmode == 1 && normal_reaction && rug::rugged && clicked)
|
||||
rug::move_forward((ticks - lticks_rug) / 2500.);
|
||||
|
||||
Reference in New Issue
Block a user