summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-13 19:52:21 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-13 19:52:21 +0300
commit4cf52f29b926a924d838a3158d5c78b3337ee0ee (patch)
treedf72c72e3edccb9ce88136c7caa6d3644b1c8349 /src/app.c
parentaeb65e88297725634a4e55663e2ecc83805d9073 (diff)
Mobile: New selection logic for InputWidget
Touch-based interaction requires a different kind of selection and copy/paste behavior. This isn't done yet; especially multi-line text still needs work.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/app.c b/src/app.c
index fa601ac3..37f9c804 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1069,11 +1069,11 @@ iLocalDef iBool isWaitingAllowed_App_(iApp *d) {
1069 return iFalse; 1069 return iFalse;
1070 } 1070 }
1071#endif 1071#endif
1072#if defined (iPlatformMobile) 1072//#if defined (iPlatformMobile)
1073 if (!isFinished_Anim(&d->window->rootOffset)) { 1073// if (!isFinished_Anim(&d->window->rootOffset)) {
1074 return iFalse; 1074// return iFalse;
1075 } 1075// }
1076#endif 1076//#endif
1077 return !value_Atomic(&d->pendingRefresh) && isEmpty_SortedArray(&d->tickers); 1077 return !value_Atomic(&d->pendingRefresh) && isEmpty_SortedArray(&d->tickers);
1078} 1078}
1079 1079
@@ -1318,7 +1318,7 @@ void processEvents_App(enum iAppEventMode eventMode) {
1318 } 1318 }
1319 } 1319 }
1320#if defined (LAGRANGE_ENABLE_IDLE_SLEEP) 1320#if defined (LAGRANGE_ENABLE_IDLE_SLEEP)
1321 if (d->isIdling && !gotEvents && isFinished_Anim(&d->window->rootOffset)) { 1321 if (d->isIdling && !gotEvents /*&& isFinished_Anim(&d->window->rootOffset)*/) {
1322 /* This is where we spend most of our time when idle. 60 Hz still quite a lot but we 1322 /* This is where we spend most of our time when idle. 60 Hz still quite a lot but we
1323 can't wait too long after the user tries to interact again with the app. In any 1323 can't wait too long after the user tries to interact again with the app. In any
1324 case, on macOS SDL_WaitEvent() seems to use 10x more CPU time than sleeping. */ 1324 case, on macOS SDL_WaitEvent() seems to use 10x more CPU time than sleeping. */
@@ -1411,9 +1411,9 @@ void refresh_App(void) {
1411#endif 1411#endif
1412 if (!exchange_Atomic(&d->pendingRefresh, iFalse)) { 1412 if (!exchange_Atomic(&d->pendingRefresh, iFalse)) {
1413 /* Refreshing wasn't pending. */ 1413 /* Refreshing wasn't pending. */
1414 if (isFinished_Anim(&d->window->rootOffset)) { 1414// if (isFinished_Anim(&d->window->rootOffset)) {
1415 return; 1415 return;
1416 } 1416// }
1417 } 1417 }
1418// iTime draw; 1418// iTime draw;
1419// initCurrent_Time(&draw); 1419// initCurrent_Time(&draw);