1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-08 12:29:04 +00:00

renamed DIM to GDIM

This commit is contained in:
Zeno Rogue
2019-08-15 15:05:43 +02:00
parent 21b6f22de4
commit 96bf478482
36 changed files with 366 additions and 367 deletions

View File

@@ -326,7 +326,7 @@ struct joy_configurer {
dzconfigs[numaxeconfigs] = &(scfg.deadzoneval[j][ax]);
char aa = *axeconfigs[numaxeconfigs];
string what = configdead ? its(scfg.deadzoneval[j][ax]) :
(DIM == 3 && (aa%SHMUPAXES < 4)) ? XLAT(axemodes3[aa%SHMUPAXES]) :
(GDIM == 3 && (aa%SHMUPAXES < 4)) ? XLAT(axemodes3[aa%SHMUPAXES]) :
XLAT(axemodes[aa%SHMUPAXES]);
dialog::addSelItem(XLAT("Joystick %1, axis %2", cts('A'+j), its(ax)) + buf,
what, 'a'+numaxeconfigs);
@@ -702,7 +702,7 @@ void handleInput(int delta) {
double panmove = actionspressed[59] - actionspressed[60];
if(DIM == 3)
if(GDIM == 3)
panmove += axespressed[1] / 32000.0;
else
panspin += axespressed[1] / 32000.0;
@@ -737,7 +737,7 @@ void handleInput(int delta) {
#endif
if(panx || pany || panspin || (GDIM == 3 && panmove)) {
if(DIM == 2) {
if(GDIM == 2) {
View = xpush(-panx) * ypush(-pany) * spin(panspin) * View;
playermoved = false;
}