mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Add SCREENSWAP compilation flag
This commit is contained in:
parent
30bc6ec416
commit
9ee6cc3f77
@ -447,6 +447,14 @@ void driveMenu (void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SCREENSWAP
|
||||||
|
// Swap screens
|
||||||
|
if (pressed & KEY_TOUCH) {
|
||||||
|
screenSwapped = !screenSwapped;
|
||||||
|
screenSwapped ? lcdMainOnBottom() : lcdMainOnTop();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Make a screenshot
|
// Make a screenshot
|
||||||
if ((held & KEY_R) && (pressed & KEY_L)) {
|
if ((held & KEY_R) && (pressed & KEY_L)) {
|
||||||
if (sdMounted || flashcardMounted) {
|
if (sdMounted || flashcardMounted) {
|
||||||
|
|||||||
@ -266,7 +266,11 @@ FileOperation fileBrowse_A(DirEntry* entry, char path[PATH_MAX]) {
|
|||||||
pressed = keysDownRepeat();
|
pressed = keysDownRepeat();
|
||||||
swiWaitForVBlank();
|
swiWaitForVBlank();
|
||||||
} while (!(pressed & KEY_UP) && !(pressed & KEY_DOWN)
|
} while (!(pressed & KEY_UP) && !(pressed & KEY_DOWN)
|
||||||
&& !(pressed & KEY_A) && !(pressed & KEY_B));
|
&& !(pressed & KEY_A) && !(pressed & KEY_B)
|
||||||
|
#ifdef SCREENSWAP
|
||||||
|
&& !(pressed & KEY_TOUCH)
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
consoleSelect(&bottomConsole);
|
consoleSelect(&bottomConsole);
|
||||||
printf ("\x1B[47m"); // Print foreground white color
|
printf ("\x1B[47m"); // Print foreground white color
|
||||||
@ -379,6 +383,13 @@ FileOperation fileBrowse_A(DirEntry* entry, char path[PATH_MAX]) {
|
|||||||
if (pressed & KEY_B) {
|
if (pressed & KEY_B) {
|
||||||
return FileOperation::none;
|
return FileOperation::none;
|
||||||
}
|
}
|
||||||
|
#ifdef SCREENSWAP
|
||||||
|
// Swap screens
|
||||||
|
if (pressed & KEY_TOUCH) {
|
||||||
|
screenSwapped = !screenSwapped;
|
||||||
|
screenSwapped ? lcdMainOnBottom() : lcdMainOnTop();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -427,7 +438,12 @@ bool fileBrowse_paste(char dest[256]) {
|
|||||||
pressed = keysDownRepeat();
|
pressed = keysDownRepeat();
|
||||||
swiWaitForVBlank();
|
swiWaitForVBlank();
|
||||||
} while (!(pressed & KEY_UP) && !(pressed & KEY_DOWN)
|
} while (!(pressed & KEY_UP) && !(pressed & KEY_DOWN)
|
||||||
&& !(pressed & KEY_A) && !(pressed & KEY_B));
|
&& !(pressed & KEY_A) && !(pressed & KEY_B)
|
||||||
|
#ifdef SCREENSWAP
|
||||||
|
&& !(pressed & KEY_TOUCH)
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
consoleSelect(&bottomConsole);
|
consoleSelect(&bottomConsole);
|
||||||
printf ("\x1B[47m"); // Print foreground white color
|
printf ("\x1B[47m"); // Print foreground white color
|
||||||
@ -465,6 +481,13 @@ bool fileBrowse_paste(char dest[256]) {
|
|||||||
if (pressed & KEY_B) {
|
if (pressed & KEY_B) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#ifdef SCREENSWAP
|
||||||
|
// Swap screens
|
||||||
|
if (pressed & KEY_TOUCH) {
|
||||||
|
screenSwapped = !screenSwapped;
|
||||||
|
screenSwapped ? lcdMainOnBottom() : lcdMainOnTop();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -869,6 +892,14 @@ std::string browseForFile (void) {
|
|||||||
clipboardOn = !clipboardOn;
|
clipboardOn = !clipboardOn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SCREENSWAP
|
||||||
|
// Swap screens
|
||||||
|
if (pressed & KEY_TOUCH) {
|
||||||
|
screenSwapped = !screenSwapped;
|
||||||
|
screenSwapped ? lcdMainOnBottom() : lcdMainOnTop();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Make a screenshot
|
// Make a screenshot
|
||||||
if ((held & KEY_R) && (pressed & KEY_L)) {
|
if ((held & KEY_R) && (pressed & KEY_L)) {
|
||||||
if (sdMounted || flashcardMounted) {
|
if (sdMounted || flashcardMounted) {
|
||||||
|
|||||||
@ -44,6 +44,9 @@ char titleName[32] = {" "};
|
|||||||
int screenMode = 0;
|
int screenMode = 0;
|
||||||
|
|
||||||
bool appInited = false;
|
bool appInited = false;
|
||||||
|
#ifdef SCREENSWAP
|
||||||
|
bool screenSwapped = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
bool arm7SCFGLocked = false;
|
bool arm7SCFGLocked = false;
|
||||||
bool isRegularDS = true;
|
bool isRegularDS = true;
|
||||||
|
|||||||
@ -13,6 +13,9 @@ extern char titleName[32];
|
|||||||
extern int screenMode;
|
extern int screenMode;
|
||||||
|
|
||||||
extern bool appInited;
|
extern bool appInited;
|
||||||
|
#ifdef SCREENSWAP
|
||||||
|
extern bool screenSwapped;
|
||||||
|
#endif
|
||||||
|
|
||||||
extern bool arm7SCFGLocked;
|
extern bool arm7SCFGLocked;
|
||||||
extern bool isRegularDS;
|
extern bool isRegularDS;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user