summaryrefslogtreecommitdiff
path: root/source/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/gui.c')
-rw-r--r--source/gui.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/gui.c b/source/gui.c
index 3579f69..46ae67a 100644
--- a/source/gui.c
+++ b/source/gui.c
@@ -259,7 +259,9 @@ int GUI_Menu(const char *opts[])
}
else if (key & KEY_TOUCH)
{
- touchPosition tp=touchReadXY();
+ touchPosition tp;
+
+ touchRead(&tp);
if (tp.px>=x && tp.px<(w+w) && tp.py>=y && tp.py<(y+h))
{
@@ -421,9 +423,11 @@ void GUI_Config(void)
}
else if (key & KEY_TOUCH)
{
- touchPosition tp = touchReadXY();
+ touchPosition tp;
int nsel;
+ touchRead(&tp);
+
nsel = (tp.py-18)/14;
if (nsel>=0 && nsel<DS81_NUM_CONFIG_ITEMS)
@@ -532,7 +536,7 @@ int GUI_FileSelect(char pwd[], char selected_file[], const char *filter)
while (((key=keysHeld()) & KEY_TOUCH) && diff == 0)
{
- tp = touchReadXY();
+ touchRead(&tp);
diff = tp.py - drag_start;
swiWaitForVBlank();
}
@@ -579,7 +583,7 @@ int GUI_FileSelect(char pwd[], char selected_file[], const char *filter)
{
touchPosition tp;
- tp = touchReadXY();
+ touchRead(&tp);
if (tp.py >= FSEL_LIST_Y && tp.py <= (FSEL_LIST_Y+FSEL_LIST_H))
{