2018-02-08 23:40:26 +00:00
|
|
|
// Hyperbolic Rogue -- initialization, and stuff related to mobiles
|
|
|
|
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
|
|
|
|
|
2019-08-10 11:43:24 +00:00
|
|
|
/** \file init.cpp
|
|
|
|
* \brief initialization, and stuff related to mobiles
|
|
|
|
*/
|
|
|
|
|
2019-09-05 07:15:40 +00:00
|
|
|
#include "hyper.h"
|
2018-06-10 23:58:31 +00:00
|
|
|
namespace hr {
|
|
|
|
|
2017-07-22 23:33:27 +00:00
|
|
|
#if ISANDROID
|
2017-03-23 10:53:57 +00:00
|
|
|
string buildScoreDescription() {
|
|
|
|
string s;
|
|
|
|
time_t timer;
|
|
|
|
timer = time(NULL);
|
|
|
|
char buf[128]; strftime(buf, 128, "%c", localtime(&timer));
|
|
|
|
char buf2[128];
|
|
|
|
|
|
|
|
s += XLAT("HyperRogue for Android");
|
2017-07-22 23:33:27 +00:00
|
|
|
s += " ( " VER "), http://www.roguetemple.com/z/hyper/\n";
|
2017-10-17 18:36:36 +00:00
|
|
|
s += XLAT("Date: %1 time: %2 s ", buf, getgametime_s());
|
2018-08-17 22:46:45 +00:00
|
|
|
s += XLAT("distance: %1\n", its(celldist(cwt.at)));
|
2017-03-23 10:53:57 +00:00
|
|
|
// s += buf2;
|
|
|
|
if(cheater) s += XLAT("Cheats: ") + its(cheater) + "\n";
|
|
|
|
s += XLAT("Score: ") + its(gold());
|
|
|
|
|
|
|
|
for(int i=0; i<ittypes; i++) if(items[i]) {
|
|
|
|
string t = XLATN(iinf[i].name);
|
|
|
|
sprintf(buf2, " %s (%d)", t.c_str(), items[i]);
|
|
|
|
s += buf2;
|
|
|
|
}
|
|
|
|
s += "\n";
|
|
|
|
s += XLAT("Kills: ") + its(tkills());
|
|
|
|
for(int i=1; i<motypes; i++) if(kills[i]) {
|
|
|
|
string t = XLATN(minf[i].name);
|
|
|
|
sprintf(buf2, " %s (%d)", t.c_str(), kills[i]);
|
|
|
|
s += buf2;
|
|
|
|
}
|
|
|
|
s += "\n";
|
|
|
|
|
|
|
|
for(int i=0; i<gamelog.size(); i++) if(gamelog[i].msg != "") s += gamelog[i].msg + "\n";
|
|
|
|
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2020-05-03 18:56:41 +00:00
|
|
|
#if ISMOBILE
|
2017-03-23 10:53:57 +00:00
|
|
|
|
2018-07-22 13:54:44 +00:00
|
|
|
int andmode;
|
|
|
|
|
2020-04-06 06:37:22 +00:00
|
|
|
bool lclicked = false;
|
|
|
|
EX bool clicked = false;
|
|
|
|
EX bool buttonclicked = false;
|
2017-03-23 10:53:57 +00:00
|
|
|
string lmouseovers;
|
|
|
|
bool inmenu = false;
|
|
|
|
|
2019-06-28 08:05:28 +00:00
|
|
|
bool wclick;
|
2017-03-23 10:53:57 +00:00
|
|
|
bool longclick;
|
2018-07-23 12:05:57 +00:00
|
|
|
bool verylongclick;
|
2017-03-23 10:53:57 +00:00
|
|
|
|
|
|
|
void handleScoreClick();
|
|
|
|
void openURL();
|
|
|
|
void displayTexts();
|
|
|
|
void controlMusic(int ticks);
|
|
|
|
|
|
|
|
void showHelp(MOBPAR_FORMAL, string nhelp) {
|
2017-07-22 23:33:27 +00:00
|
|
|
gotoHelp(nhelp);
|
2017-03-23 10:53:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool useRangedOrb;
|
|
|
|
|
|
|
|
void handleclick(MOBPAR_FORMAL) {
|
|
|
|
|
2017-11-13 10:08:06 +00:00
|
|
|
if(handleCompass()) return;
|
2017-03-23 10:53:57 +00:00
|
|
|
|
2017-06-09 01:41:33 +00:00
|
|
|
if(buttonclicked || mouseout()) {
|
2017-10-17 18:59:27 +00:00
|
|
|
|
2018-06-22 12:47:24 +00:00
|
|
|
bool statkeys = andmode == 0 && !shmup::on && isize(screens) == 1;
|
2017-03-23 10:53:57 +00:00
|
|
|
|
2017-10-17 18:59:27 +00:00
|
|
|
if(statkeys && getcstat == 'g') {
|
2017-03-23 10:53:57 +00:00
|
|
|
movepcto(MD_DROP);
|
|
|
|
getcstat = 0;
|
|
|
|
}
|
|
|
|
|
2017-10-17 18:59:27 +00:00
|
|
|
else if(statkeys && getcstat == 'i') {
|
|
|
|
if(inv::on) pushScreen(inv::show);
|
|
|
|
getcstat = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
else if(statkeys && getcstat == 't') {
|
|
|
|
if(playermoved && items[itStrongWind]) {
|
2018-08-17 22:46:45 +00:00
|
|
|
cell *c = whirlwind::jumpDestination(cwt.at);
|
2020-04-06 06:37:22 +00:00
|
|
|
if(c) centerover = c;
|
2017-10-17 18:59:27 +00:00
|
|
|
}
|
2020-04-06 06:37:22 +00:00
|
|
|
targetRangedOrb(centerover, roKeyboard);
|
2017-10-17 18:59:27 +00:00
|
|
|
getcstat = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
else if(getcstat != SDLK_F1 && getcstat != 'i' && getcstat != 't') {
|
2018-11-17 18:24:02 +00:00
|
|
|
int px = mousex < current_display->xcenter ? 0 : 1;
|
|
|
|
int py = mousey < current_display->ycenter ? 0 : 1;
|
2017-03-23 10:53:57 +00:00
|
|
|
|
2018-06-22 12:47:24 +00:00
|
|
|
if(isize(screens) == 1) {
|
2017-03-23 10:53:57 +00:00
|
|
|
if(px == 0 && py == 1) {
|
|
|
|
if(andmode == 0 && shmup::on) ;
|
|
|
|
else andmode = 10;
|
|
|
|
}
|
|
|
|
if(px == 1 && py == 1) {
|
|
|
|
if(andmode == 0 && shmup::on) ; // just fire, do not change modes
|
|
|
|
else {
|
|
|
|
if(andmode == 1) {
|
2018-07-23 03:14:19 +00:00
|
|
|
ors::reset();
|
2017-03-23 10:53:57 +00:00
|
|
|
centerpc(INF);
|
|
|
|
View = Id;
|
2020-04-06 06:37:22 +00:00
|
|
|
centerover = cwt.at;
|
2017-03-23 10:53:57 +00:00
|
|
|
}
|
|
|
|
andmode = 11;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(px == 0 && py == 0) andmode = 22;
|
|
|
|
if(px == 1 && py == 0) andmode = 13;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
if(andmode == 0 && help != "@") {
|
|
|
|
addMessage(mouseovers);
|
|
|
|
showHelp(MOBPAR_ACTUAL, help);
|
|
|
|
andmode = 10;
|
|
|
|
getcstat = 0;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-22 12:47:24 +00:00
|
|
|
if(andmode == 0 && isize(screens) == 1 && !mouseout()) {
|
2017-03-23 10:53:57 +00:00
|
|
|
|
|
|
|
bool forcetarget = longclick;
|
|
|
|
|
|
|
|
if(mouseover && targetclick && targetRangedOrb(mouseover, forcetarget ? roMouseForce : roMouse)) {
|
|
|
|
;
|
|
|
|
}
|
2019-06-28 08:05:28 +00:00
|
|
|
else if(!forcetarget) {
|
|
|
|
if(WDIM == 3 && wclick) movepcto(-1);
|
2019-08-15 13:05:43 +00:00
|
|
|
else if(GDIM == 3) mousemovement();
|
2019-06-28 08:05:28 +00:00
|
|
|
else movepcto(mousedest);
|
|
|
|
}
|
2017-03-23 10:53:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if(andmode == 10) {
|
|
|
|
if(!playerfound) {
|
|
|
|
centerpc(INF);
|
|
|
|
View = Id;
|
2020-04-06 06:37:22 +00:00
|
|
|
centerover = cwt.at;
|
2017-03-23 10:53:57 +00:00
|
|
|
}
|
|
|
|
playermoved = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(andmode >= 10) andmode -= 10;
|
|
|
|
|
2017-08-06 12:50:16 +00:00
|
|
|
if(andmode == 3) {
|
|
|
|
if(tour::on)
|
|
|
|
showMissionScreen();
|
|
|
|
else
|
|
|
|
pushScreen(showMainMenu);
|
|
|
|
andmode = 0;
|
|
|
|
}
|
2017-03-23 10:53:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int touchedAt;
|
|
|
|
|
2017-07-22 23:33:27 +00:00
|
|
|
#if CAP_ANDROIDSHARE
|
2017-03-31 19:41:09 +00:00
|
|
|
void shareScore(MOBPAR_FORMAL);
|
|
|
|
#endif
|
|
|
|
|
2019-06-28 07:56:39 +00:00
|
|
|
#if CAP_ORIENTATION
|
|
|
|
int first_check, last_check;
|
|
|
|
transmatrix main_last_orientation;
|
|
|
|
|
|
|
|
void apply_orientation() {
|
|
|
|
if(ticks > last_check + 2000) first_check = ticks;
|
|
|
|
last_check = ticks;
|
|
|
|
transmatrix T = MirrorX * hr::getOrientation() * MirrorX;
|
|
|
|
if(ticks < first_check + 500)
|
|
|
|
main_last_orientation = T;
|
|
|
|
else {
|
|
|
|
transmatrix next_orientation = T;
|
2021-06-01 16:01:08 +00:00
|
|
|
rotate_view(main_last_orientation);
|
2019-06-28 07:56:39 +00:00
|
|
|
if(WDIM == 2 && vid.fixed_yz) {
|
|
|
|
if(View[0][2] || View[1][2] || View[2][2]) {
|
|
|
|
View = cspin(0, 2, -atan2(View[0][2], View[2][2])) * View;
|
|
|
|
View = cspin(1, 2, -atan2(View[1][2], View[2][2])) * View;
|
|
|
|
}
|
|
|
|
}
|
2021-06-01 16:01:08 +00:00
|
|
|
rotate_view(inverse(next_orientation));
|
2019-06-28 07:56:39 +00:00
|
|
|
main_last_orientation = next_orientation;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2020-04-06 06:37:22 +00:00
|
|
|
EX void mobile_draw(MOBPAR_FORMAL) {
|
2017-03-23 10:53:57 +00:00
|
|
|
|
2019-06-28 07:48:34 +00:00
|
|
|
apply_memory_reserve();
|
2017-03-23 10:53:57 +00:00
|
|
|
optimizeview();
|
|
|
|
|
2018-07-23 03:16:16 +00:00
|
|
|
int lastt = ticks; ticks = SDL_GetTicks();
|
2017-03-23 10:53:57 +00:00
|
|
|
if(lastt > ticks) lastt = ticks;
|
|
|
|
int tdiff = ticks - lastt;
|
|
|
|
|
2018-07-23 03:14:19 +00:00
|
|
|
ors::check_orientation();
|
|
|
|
|
2019-08-15 13:05:43 +00:00
|
|
|
if(GDIM == 3 && !shmup::on && !rug::rugged)
|
2019-06-28 07:56:39 +00:00
|
|
|
apply_orientation();
|
|
|
|
|
2021-06-01 16:01:08 +00:00
|
|
|
if(rug::rugged) {
|
|
|
|
rug::using_rugview urv;
|
|
|
|
apply_orientation();
|
|
|
|
}
|
|
|
|
|
2017-03-23 10:53:57 +00:00
|
|
|
if(playermoved && vid.sspeed > -4.99)
|
|
|
|
centerpc(tdiff / 1000.0 * exp(vid.sspeed));
|
|
|
|
|
2018-06-22 12:47:24 +00:00
|
|
|
if(shmup::on && (andmode == 0 || andmode == 10) && isize(screens) == 1)
|
2017-03-23 10:53:57 +00:00
|
|
|
shmup::turn(tdiff);
|
|
|
|
|
|
|
|
safety = false;
|
2021-05-29 10:17:42 +00:00
|
|
|
vid.fsize = (min(vid.xres, vid.yres) * vid.fontscale + 50) / 3200;
|
2017-03-23 10:53:57 +00:00
|
|
|
|
2017-06-09 01:41:33 +00:00
|
|
|
mouseoh = mouseh;
|
2017-03-23 10:53:57 +00:00
|
|
|
gtouched = mousepressed = clicked;
|
|
|
|
|
2019-06-28 08:05:28 +00:00
|
|
|
wclick = lclicked && ticks > touchedAt + 250;
|
2017-03-23 10:53:57 +00:00
|
|
|
longclick = lclicked && ticks > touchedAt + 500;
|
2018-07-23 12:05:57 +00:00
|
|
|
verylongclick = longclick && ticks > touchedAt + 1000;
|
|
|
|
|
2017-03-23 10:53:57 +00:00
|
|
|
useRangedOrb =
|
|
|
|
longclick || (!(vid.shifttarget & 2) && haveRangedOrb() && lmouseover && lmouseover->cpdist > 1);
|
|
|
|
|
|
|
|
targetclick = ((vid.shifttarget & 2) && !shmup::on) ? longclick : true;
|
|
|
|
|
|
|
|
if(shmup::on) {
|
|
|
|
using namespace shmupballs;
|
|
|
|
if(hypot(mousex - xfire, mousey - yb) < rad) targetclick = false;
|
|
|
|
if(hypot(mousex - xmove, mousey - yb) < rad) targetclick = false;
|
|
|
|
}
|
|
|
|
|
2017-07-22 23:33:27 +00:00
|
|
|
if(cmode & sm::NORMAL) {
|
2021-06-01 16:01:21 +00:00
|
|
|
lmouseover_distant = mouseover;
|
2017-03-23 10:53:57 +00:00
|
|
|
lmouseover = (gtouched && lclicked) ? mouseover : NULL;
|
|
|
|
if(!shmup::on && !useRangedOrb && vid.mobilecompasssize) {
|
|
|
|
using namespace shmupballs;
|
|
|
|
int dx = mousex - xmove;
|
|
|
|
int dy = mousey - yb;
|
|
|
|
int h = hypot(dx, dy);
|
|
|
|
if(h < rad) {
|
2018-08-17 22:46:45 +00:00
|
|
|
if(h < rad*SKIPFAC) { lmouseover = cwt.at; mousedest.d = -1; }
|
2017-03-23 10:53:57 +00:00
|
|
|
else {
|
2017-07-10 18:47:38 +00:00
|
|
|
double d = vid.revcontrol ? -1 : 1;
|
2020-10-05 18:48:56 +00:00
|
|
|
mouseh = shiftless(hpxy(dx * d / rad, dy * d / rad));
|
2017-03-23 10:53:57 +00:00
|
|
|
calcMousedest();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(andmode == 0 && !useRangedOrb && gtouched && lclicked) {
|
2018-08-17 22:46:45 +00:00
|
|
|
lmouseover = mousedest.d >= 0 ? cwt.at->modmove(cwt.spin + mousedest.d) : cwt.at;
|
2017-03-23 10:53:57 +00:00
|
|
|
}
|
|
|
|
}
|
2018-02-11 01:19:49 +00:00
|
|
|
|
|
|
|
#if CAP_RUG
|
|
|
|
if(rug::rugged)
|
|
|
|
mouseh = rug::gethyper(mousex, mousey);
|
|
|
|
else
|
|
|
|
#endif
|
|
|
|
mouseh = gethyper(mousex, mousey);
|
2017-03-23 10:53:57 +00:00
|
|
|
|
2018-07-23 03:14:19 +00:00
|
|
|
inmenu = isize(screens) > 1;
|
|
|
|
|
2018-11-17 18:24:02 +00:00
|
|
|
if(!inmenu && vid.stereo_mode == sLR && ors::mode)
|
2020-10-05 18:48:56 +00:00
|
|
|
mousex = vid.xres/2, mousey = vid.yres/2, mouseh = shiftless(sphereflip * C0);
|
2018-07-23 03:14:19 +00:00
|
|
|
|
2017-03-23 10:53:57 +00:00
|
|
|
frames++;
|
2019-08-09 22:58:50 +00:00
|
|
|
models::configure();
|
2018-10-23 14:58:19 +00:00
|
|
|
|
2017-03-23 10:53:57 +00:00
|
|
|
if(ticks > lastt) tortoise::updateVals(ticks - lastt);
|
|
|
|
|
|
|
|
if(clicked && !lclicked) touchedAt = ticks;
|
|
|
|
|
2017-07-22 23:33:27 +00:00
|
|
|
#if CAP_XGD
|
2017-03-23 10:53:57 +00:00
|
|
|
graphdata.clear();
|
2017-07-22 23:33:27 +00:00
|
|
|
#endif
|
2017-03-23 10:53:57 +00:00
|
|
|
getcstat = 0; shiftmul = 1; getcshift = 1;
|
|
|
|
drawscreen();
|
|
|
|
shiftmul = getcshift;
|
|
|
|
calcMousedest();
|
|
|
|
|
|
|
|
if(lclicked && !clicked && !inmenu) handleclick(MOBPAR_ACTUAL);
|
|
|
|
|
|
|
|
if(inmenu && !clicked && !lclicked) inmenu = false;
|
|
|
|
|
|
|
|
bool keyreact = lclicked && !clicked;
|
2018-07-22 10:54:05 +00:00
|
|
|
|
|
|
|
#if CAP_MENUSCALING
|
|
|
|
if(true) {
|
2017-03-23 10:53:57 +00:00
|
|
|
using namespace dialog::zoom;
|
2018-07-22 10:54:05 +00:00
|
|
|
if(zoomoff || !(cmode & sm::ZOOMABLE)) nozoom();
|
|
|
|
else if(clicked && !lclicked) initzoom();
|
|
|
|
else if(!clicked && zoomf > 1) stopzoom();
|
|
|
|
}
|
|
|
|
#endif
|
2017-03-23 10:53:57 +00:00
|
|
|
|
|
|
|
if(inslider) keyreact = true;
|
|
|
|
|
2017-07-22 23:33:27 +00:00
|
|
|
#if CAP_ANDROIDSHARE
|
2017-03-31 19:41:09 +00:00
|
|
|
if(getcstat == 's'-96 && keyreact) {
|
2017-07-22 23:33:27 +00:00
|
|
|
popScreenAll();
|
2017-03-23 10:53:57 +00:00
|
|
|
shareScore(MOBPAR_ACTUAL);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-03-02 12:05:31 +00:00
|
|
|
bool normal_reaction = !inmenu;
|
|
|
|
|
2018-11-17 18:24:02 +00:00
|
|
|
if(normal_reaction && vid.stereo_mode == sLR) {
|
2018-03-02 12:05:31 +00:00
|
|
|
normal_reaction = false;
|
|
|
|
if(lclicked && !clicked) {
|
|
|
|
if(rug::rugged)
|
|
|
|
rug::select();
|
2019-08-15 13:05:43 +00:00
|
|
|
else if((ors::mode || GDIM == 3) && !verylongclick)
|
2018-07-23 03:14:19 +00:00
|
|
|
normal_reaction = true;
|
2018-03-02 12:05:31 +00:00
|
|
|
else
|
|
|
|
pushScreen(showStereo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-22 12:47:24 +00:00
|
|
|
if(andmode == 2 && isize(screens) != 1) andmode = 12;
|
2017-03-23 10:53:57 +00:00
|
|
|
|
2017-07-22 23:33:27 +00:00
|
|
|
if((cmode & sm::NORMAL) && getcstat == '-')
|
|
|
|
getcstat = 0;
|
|
|
|
|
|
|
|
if(keyreact) {
|
|
|
|
handlekey(getcstat, getcstat);
|
2017-03-23 10:53:57 +00:00
|
|
|
}
|
|
|
|
|
2017-07-22 23:33:27 +00:00
|
|
|
#if ISIOS
|
2017-03-23 10:53:57 +00:00
|
|
|
displayTexts();
|
|
|
|
#endif
|
|
|
|
|
2019-06-28 07:59:26 +00:00
|
|
|
static int lticks_rug;
|
|
|
|
|
2018-03-02 12:05:31 +00:00
|
|
|
if(clicked && lclicked && andmode == 1 && normal_reaction) {
|
2019-08-15 13:05:43 +00:00
|
|
|
if(GDIM == 3 && !rug::rugged) {
|
2019-06-28 07:59:26 +00:00
|
|
|
View = cpush(2, -(ticks - lticks_rug) / 2500.) * View;
|
|
|
|
playermoved = false;
|
|
|
|
}
|
|
|
|
else if(!mouseout2() && mouseoh[2] < 50 && mouseh[2] < 50 && !rug::rugged) {
|
2017-07-22 23:33:27 +00:00
|
|
|
panning(mouseoh, mouseh);
|
2017-03-23 10:53:57 +00:00
|
|
|
}
|
2017-07-22 23:33:27 +00:00
|
|
|
}
|
2018-02-03 19:04:19 +00:00
|
|
|
|
2020-11-08 11:43:07 +00:00
|
|
|
#if CAP_RUG && CAP_ANIMATIONS
|
|
|
|
if(andmode == 1 && normal_reaction && rug::rugged && clicked && rug::move_on_touch)
|
|
|
|
anims::animate_rug_movement(rug::move_on_touch * (ticks - lticks_rug) / 2500.);
|
2018-02-04 00:04:29 +00:00
|
|
|
#endif
|
2018-02-03 19:04:19 +00:00
|
|
|
|
|
|
|
lticks_rug = ticks;
|
2017-03-23 10:53:57 +00:00
|
|
|
|
2018-03-02 12:05:31 +00:00
|
|
|
if(andmode == 1 && lclicked && !clicked && normal_reaction && mouseover)
|
2020-04-06 06:37:22 +00:00
|
|
|
mine::performMarkCommand(mouseover);
|
2017-03-23 10:53:57 +00:00
|
|
|
|
2018-03-02 12:05:31 +00:00
|
|
|
if(clicked && andmode == 2 && (mouseover != lmouseover || mouseovers != lmouseovers) && normal_reaction) {
|
2017-07-22 23:33:27 +00:00
|
|
|
addMessage(mouseovers);
|
|
|
|
lmouseovers = mouseovers;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(andmode == 10 && clicked != lclicked) andmode = 0;
|
|
|
|
if(andmode == 20 && clicked != lclicked) andmode = 10;
|
|
|
|
|
|
|
|
if(andmode == 2 && lclicked && !clicked) {
|
|
|
|
showHelp(MOBPAR_ACTUAL, help);
|
|
|
|
}
|
2017-03-23 10:53:57 +00:00
|
|
|
|
|
|
|
else if(andmode == 4) {
|
|
|
|
achievement_final(false);
|
|
|
|
}
|
|
|
|
|
2017-09-17 11:25:17 +00:00
|
|
|
if(clicked && andmode == 12 && (mouseover != lmouseover || mouseovers != lmouseovers)) {
|
2017-03-23 10:53:57 +00:00
|
|
|
addMessage(mouseovers);
|
|
|
|
lmouseovers = mouseovers;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(clicked != lclicked)
|
|
|
|
flashMessages();
|
|
|
|
|
|
|
|
// END
|
|
|
|
lclicked = clicked;
|
|
|
|
|
2017-07-22 23:33:27 +00:00
|
|
|
#if ISIOS
|
2017-03-23 10:53:57 +00:00
|
|
|
controlMusic(ticks - lastt);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2017-05-27 19:40:40 +00:00
|
|
|
|
2018-06-10 23:58:31 +00:00
|
|
|
}
|