summaryrefslogtreecommitdiff
path: root/src/ui/touch.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-02-06 15:07:17 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-02-06 15:07:17 +0200
commit076e34aa8d1e57cbf3142abdc91c8e88d21b75d6 (patch)
tree3ee91315ee1a083b74d84637af28252f039fa084 /src/ui/touch.c
parentedb260848a42de2e1af44cab93dbf267d20e1f6f (diff)
parent53ab74c3a25521faa6f41b40b1969a3b8e8ad027 (diff)
Merge branch 'dev' into work/v1.11
# Conflicts: # CMakeLists.txt # res/fonts/SmolEmoji-Regular.ttf # res/lang/gl.bin # src/app.c
Diffstat (limited to 'src/ui/touch.c')
-rw-r--r--src/ui/touch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/touch.c b/src/ui/touch.c
index 20ccf7b8..a178a913 100644
--- a/src/ui/touch.c
+++ b/src/ui/touch.c
@@ -638,11 +638,14 @@ iBool processEvent_Touch(const SDL_Event *ev) {
638 pixels.x = 0; 638 pixels.x = 0;
639 } 639 }
640#if 0 640#if 0
641 printf("%p (%s) py: %i wy: %f acc: %f edge: %d\n", 641 static uint32_t lastTime = 0;
642 printf("%u :: %p (%s) py: %i wy: %f acc: %f edge: %d\n",
643 nowTime - lastTime,
642 touch->affinity, 644 touch->affinity,
643 class_Widget(touch->affinity)->name, 645 class_Widget(touch->affinity)->name,
644 pixels.y, y_F3(amount), y_F3(touch->accum), 646 pixels.y, y_F3(amount), y_F3(touch->accum),
645 touch->edge); 647 touch->edge);
648 lastTime = nowTime;
646#endif 649#endif
647 if (pixels.x || pixels.y) { 650 if (pixels.x || pixels.y) {
648 //setFocus_Widget(NULL); 651 //setFocus_Widget(NULL);