diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-13 10:58:59 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-13 11:00:26 +0200 |
commit | f45c27a85013cdf4261c8f0d5673e3ba5420cdd6 (patch) | |
tree | 971b3f0a02c38a29652127cba33924da1a5a3b46 /src/ui/touch.c | |
parent | 806a3ce4d56c85d80b7d050c052caa1abbf1bd40 (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.c | 4 |
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 | ||
43 | static const uint32_t longPressSpanMs_ = 500; | 43 | static const uint32_t longPressSpanMs_ = 500; |
44 | static const uint32_t shortPressSpanMs_ = 250; | 44 | static const uint32_t shortPressSpanMs_ = 250; |
45 | #if defined (iPlatformAndroidMobile) | ||
46 | static const int tapRadiusPt_ = 30; /* inaccurate sensors? */ | ||
47 | #else | ||
45 | static const int tapRadiusPt_ = 10; | 48 | static const int tapRadiusPt_ = 10; |
49 | #endif | ||
46 | 50 | ||
47 | enum iTouchEdge { | 51 | enum iTouchEdge { |
48 | none_TouchEdge, | 52 | none_TouchEdge, |