From ec6d2ca98674804c9e9162dddefda2962b91bf12 Mon Sep 17 00:00:00 2001 From: Danny Koernig Date: Thu, 17 Nov 2016 14:38:52 +0100 Subject: add touch event support for x11 server --- src/newt/classes/jogamp/newt/driver/x11/WindowDriver.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/newt/classes') diff --git a/src/newt/classes/jogamp/newt/driver/x11/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/x11/WindowDriver.java index 9e1d2869b..468aca654 100644 --- a/src/newt/classes/jogamp/newt/driver/x11/WindowDriver.java +++ b/src/newt/classes/jogamp/newt/driver/x11/WindowDriver.java @@ -406,6 +406,20 @@ public class WindowDriver extends WindowImpl { } } + public final void sendTouchScreenEvent(final short eventType, final int modifiers, + final int pActionIdx, final int[] pNames, + final int[] pX, final int[] pY, final float[] pPressure, final float maxPressure) { + final int pCount = pNames.length; + final MouseEvent.PointerType[] pTypes = new MouseEvent.PointerType[pCount]; + for(int i=0; i