From 2a652ca97ccf45c57cc52c779cf561e132a6360a Mon Sep 17 00:00:00 2001 From: StackZ <47382115+SuperSaiyajinStackZ@users.noreply.github.com> Date: Tue, 24 Dec 2019 04:00:34 +0100 Subject: [PATCH] Add touch for Color page rectangles. --- source/screens/settings.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/screens/settings.cpp b/source/screens/settings.cpp index a522e53..a5f4359 100644 --- a/source/screens/settings.cpp +++ b/source/screens/settings.cpp @@ -316,6 +316,15 @@ void Settings::colorChanging(u32 hDown, touchPosition touch) { int green; 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) { mode = 0; }