JavaFX multi-touch support under Linux

Ruíz Martín, Ricardo rrmartin at
Tue May 6 16:57:43 UTC 2014


We are trying adding direct multitouch interaction support for our JavaFX application and we are facing some multi-touch support issues under Linux.

Under Windows all touch events are propagated (zoom, rotate, swipe, touch...), but although windows can be a development solution for us, we would need final version running under Linux.
We have tried different distributions (mainly RedHat beta7 and Ubuntu 14.04) and only events we get from JavaFX are Mouse events generated by multi-touch screen.
There are a Jira Issue about this (with some others duplicate issues):
But there are no timeline or Fix version.

Searching for some workaround we have found that OpenJfx has Raspberry Pi multitouch support in ARM linux JVM runtime.
It seems that this support is because ARM JVM does not use X11 and/or GTK, but only device drivers, and it should be possible build OpenJFX with this configuration for x86 (I suppose this should work on 64 bits too.) With this build we should use EGL/X11 for full-screen output but we would get inputs from dev/input.

So we have tried build OpenJFX with -PCOMPILE_TARGETS=x86egl because we can get touch events from /dev/input/eventX in evtest with no problems.

Unfortunately although we can build OpenJFX for linux with no target, when we use this compile target build fails:

We are stuck now with this.

Is there any other way for getting multitouch events with JavaFX under Linux?



Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.

This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
Avoid printing this message if it is not absolutely necessary.

More information about the openjfx-dev mailing list