summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-18 21:41:46 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-18 21:41:46 +0200
commit3d0f88fcf9a262680c19bd5c44e407a02c409dcf (patch)
treecfd39dbe14683e5c9fa4b24805a49c3301a10f3f /src/app.c
parent0962147cc8fa92e5a79458bf1270ded51c9a4433 (diff)
iOS: Working on touch event handling
Handle finger down, motion, and up events to implement basic taps, long presses, and inertia scrolling. Much finetuning still to be done, and certain widgets like input fields and scrollbars need a direct drag mode (they were working fine via the "mouse" events already).
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index b5eb5688..ae0633e5 100644
--- a/src/app.c
+++ b/src/app.c
@@ -64,6 +64,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
64#if defined (iPlatformAppleDesktop) 64#if defined (iPlatformAppleDesktop)
65# include "macos.h" 65# include "macos.h"
66#endif 66#endif
67#if defined (iPlatformAppleMobile)
68# include "ios.h"
69#endif
67#if defined (iPlatformMsys) 70#if defined (iPlatformMsys)
68# include "win32.h" 71# include "win32.h"
69#endif 72#endif
@@ -465,6 +468,9 @@ static void init_App_(iApp *d, int argc, char **argv) {
465#if defined (iPlatformAppleDesktop) 468#if defined (iPlatformAppleDesktop)
466 setupApplication_MacOS(); 469 setupApplication_MacOS();
467#endif 470#endif
471#if defined (iPlatformAppleMobile)
472 setupApplication_iOS();
473#endif
468 init_Keys(); 474 init_Keys();
469 loadPrefs_App_(d); 475 loadPrefs_App_(d);
470 load_Keys(dataDir_App_()); 476 load_Keys(dataDir_App_());