mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-05 00:38:52 +00:00
Add touch for Color page rectangles.
This commit is contained in:
@@ -316,6 +316,15 @@ void Settings::colorChanging(u32 hDown, touchPosition touch) {
|
|||||||
int green;
|
int green;
|
||||||
int blue;
|
int blue;
|
||||||
|
|
||||||
|
if (hDown & KEY_TOUCH) {
|
||||||
|
for (int i = 0; i < 7; i++) {
|
||||||
|
if(touch.px > 54 + i * 25 && touch.px < 54 + i * 25+16 && touch.py > 5 && touch.py < 5+16) {
|
||||||
|
colorMode = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (hDown & KEY_B) {
|
if (hDown & KEY_B) {
|
||||||
mode = 0;
|
mode = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user