aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-11-03 12:59:12 +0100
committerSmallJoker <mk939@ymail.com>2019-11-03 12:59:12 +0100
commit2907c0f3a2953601aa1a81ff8226ff60086fb41b (patch)
treecd28b4f4bd754edba83aa4192634fe92aba5b200
parent388ea737f5d37d637556bf40890948bfc36734ce (diff)
downloadminetest-2907c0f3a2953601aa1a81ff8226ff60086fb41b.tar.gz
minetest-2907c0f3a2953601aa1a81ff8226ff60086fb41b.tar.bz2
minetest-2907c0f3a2953601aa1a81ff8226ff60086fb41b.zip
Android: Fix broken double-tap after 49 days uptime
-rw-r--r--src/gui/touchscreengui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/touchscreengui.h b/src/gui/touchscreengui.h
index 1f9adda22..2a3f24a3f 100644
--- a/src/gui/touchscreengui.h
+++ b/src/gui/touchscreengui.h
@@ -230,7 +230,7 @@ private:
int m_move_id = -1;
bool m_move_has_really_moved = false;
- s64 m_move_downtime = 0;
+ u64 m_move_downtime = 0;
bool m_move_sent_as_mouse_event = false;
v2s32 m_move_downlocation = v2s32(-10000, -10000);
@@ -296,7 +296,7 @@ private:
// doubleclick detection variables
struct key_event
{
- unsigned int down_time;
+ u64 down_time;
s32 x;
s32 y;
};