summaryrefslogtreecommitdiff
path: root/src/ui/touch.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-13 10:58:59 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-13 11:00:26 +0200
commitf45c27a85013cdf4261c8f0d5673e3ba5420cdd6 (patch)
tree971b3f0a02c38a29652127cba33924da1a5a3b46 /src/ui/touch.c
parent806a3ce4d56c85d80b7d050c052caa1abbf1bd40 (diff)
Android: Various fixes to get things up and running
Resource paths, runtime data, ignore mouse events. Assume that the Java side tells us the display pixel density via a command line argument.
Diffstat (limited to 'src/ui/touch.c')
-rw-r--r--src/ui/touch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/touch.c b/src/ui/touch.c
index 195d1dff..d6846572 100644
--- a/src/ui/touch.c
+++ b/src/ui/touch.c
@@ -42,7 +42,11 @@ iDeclareType(TouchState)
42 42
43static const uint32_t longPressSpanMs_ = 500; 43static const uint32_t longPressSpanMs_ = 500;
44static const uint32_t shortPressSpanMs_ = 250; 44static const uint32_t shortPressSpanMs_ = 250;
45#if defined (iPlatformAndroidMobile)
46static const int tapRadiusPt_ = 30; /* inaccurate sensors? */
47#else
45static const int tapRadiusPt_ = 10; 48static const int tapRadiusPt_ = 10;
49#endif
46 50
47enum iTouchEdge { 51enum iTouchEdge {
48 none_TouchEdge, 52 none_TouchEdge,