mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
very long click required to disable ors stereo
This commit is contained in:
parent
885c379b65
commit
1bc9bbd808
5
init.cpp
5
init.cpp
@ -116,6 +116,7 @@ string lmouseovers;
|
|||||||
bool inmenu = false;
|
bool inmenu = false;
|
||||||
|
|
||||||
bool longclick;
|
bool longclick;
|
||||||
|
bool verylongclick;
|
||||||
|
|
||||||
void handleScoreClick();
|
void handleScoreClick();
|
||||||
void openURL();
|
void openURL();
|
||||||
@ -251,6 +252,8 @@ void mobile_draw(MOBPAR_FORMAL) {
|
|||||||
gtouched = mousepressed = clicked;
|
gtouched = mousepressed = clicked;
|
||||||
|
|
||||||
longclick = lclicked && ticks > touchedAt + 500;
|
longclick = lclicked && ticks > touchedAt + 500;
|
||||||
|
verylongclick = longclick && ticks > touchedAt + 1000;
|
||||||
|
|
||||||
useRangedOrb =
|
useRangedOrb =
|
||||||
longclick || (!(vid.shifttarget & 2) && haveRangedOrb() && lmouseover && lmouseover->cpdist > 1);
|
longclick || (!(vid.shifttarget & 2) && haveRangedOrb() && lmouseover && lmouseover->cpdist > 1);
|
||||||
|
|
||||||
@ -342,7 +345,7 @@ void mobile_draw(MOBPAR_FORMAL) {
|
|||||||
if(lclicked && !clicked) {
|
if(lclicked && !clicked) {
|
||||||
if(rug::rugged)
|
if(rug::rugged)
|
||||||
rug::select();
|
rug::select();
|
||||||
else if(ors::mode && !longclick)
|
else if(ors::mode && !verylongclick)
|
||||||
normal_reaction = true;
|
normal_reaction = true;
|
||||||
else
|
else
|
||||||
pushScreen(showStereo);
|
pushScreen(showStereo);
|
||||||
|
Loading…
Reference in New Issue
Block a user