aboutsummaryrefslogtreecommitdiff
path: root/emu/port/win-x11a.c
diff options
context:
space:
mode:
Diffstat (limited to 'emu/port/win-x11a.c')
-rw-r--r--emu/port/win-x11a.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/emu/port/win-x11a.c b/emu/port/win-x11a.c
index 4fdd295..590e785 100644
--- a/emu/port/win-x11a.c
+++ b/emu/port/win-x11a.c
@@ -1296,6 +1296,18 @@ xkeyboard(XEvent *e)
gkbdputc(gkbdq, k);
}
+
+
+
+typedef struct {
+ int x;
+ int y;
+ int b;
+} touch_evt;
+
+static touch_evt touch_events[10];
+
+
static void
xmouse(XEvent *e)
{
@@ -1406,6 +1418,15 @@ xmouse(XEvent *e)
b |= 1<<8;
mousetrack(b, x, y, 0);
+
+ memset(touch_events, 0, sizeof(touch_events));
+ touch_events[0].b = b;
+ touch_events[0].x = x;
+ touch_events[0].y = y;
+
+ process_gestures(touch_events, 10);
+ if(b == 0)
+ touch_events[0].b = -1;
}
#include "x11-keysym2ucs.c"