JavaFX8: Multittouch support under Linux

Daniel Blaukopf daniel.blaukopf at oracle.com
Wed Apr 2 08:19:59 UTC 2014


Hi Stefan,

You have it exactly right. The touch support on the Raspberry Pi and similar devices gets events from the Linux device drivers, not from X11 or GTK. We don’t provide a binary of this configuration for x86, but if you are able to build OpenJFX then you could easily create a binary yourself (“gradle -PCOMPILE_TARGETS=x86egl sdk”). This is a hybrid binary that uses EGL/X11 for full-screen output but gets input directly from device nodes in /dev/input.

Thanks,
Daniel

On Apr 2, 2014, at 11:10 AM, Stefan Schwandter <s.schwandter at me.com> wrote:

> Hi Anthony,
> 
> 
> thanks for your quick reply.
> 
> I wonder though: it seems there’s at least preliminary touch support for OpenJFX on the Raspberry Pi - is this because it does not use X11 and/or GTK there? Is it possible to do the same on an X86-based Linux device?
> 
> 
> Cheers,
> Stefan
> 
> Am 01.04.2014 um 14:02 schrieb Anthony Petrov <anthony.petrov at oracle.com>:
> 
>> Hi Stefan,
>> 
>> No, currently it's not. Here's a JIRA that you may want to watch:
>> 
>> https://javafx-jira.kenai.com/browse/RT-25079
>> 
>> --
>> best regards,
>> Anthony
>> 
>> On 4/1/2014 3:52 PM, Stefan Schwandter wrote:
>>> Hello all!
>>> 
>>> 
>>> Is multitouch-input supposed to be supported on Java 8 SE running on Linux? I use a capacitive touch screen, with a DMC controller, connected to a Ubuntu 13.10 PC via USB, and none of the sample code that I've tried seems to recognize any touch events. Under Windows 7, touch events are recognized, I can swipe, zoom, etc.
>>> 
>>> So I wonder, if multitouch input is simply not supported under Linux with JavaFX 8, or I have another problem.
>>> 
>>> 
>>> Best regards,
>>> 
>>> Stefan
>>> 
> 



More information about the openjfx-dev mailing list