Forum Stats

  • 3,724,395 Users
  • 2,244,746 Discussions
  • 7,850,990 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

JavaFX Touch events on Linux

torbuntu
torbuntu Member Posts: 3 Green Ribbon
edited July 2020 in JavaFX 2.0 and Later

Hello,

I've been working on building JavaFX applications for the PinePhone. This is an aarch64 Linux mobile device. I modified the JavaFX build.gradle to include aarch64, since it isn't supported currently, to make this work so I can use Desktop JavaFX on my phone, since it runs "Desktop Linux" and not android.

This works just great and I can build my applications on my desktop and just copy the jar over to the phone.

However, the issue: JavaFX on Linux Touchscreen support is broken. The events only come through as Mouse Entered or Mouse Exited events. I can't click on items, and I can't use touch gestures of any kind.

I have been trying to figure this out for months now, and have not gotten very far.
I found this: How to use touchscreen events under Linux and Javafx 2.2  from 2012.

and this: https://bugs.openjdk.java.net/browse/JDK-8217955 from last year. Also here: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8217955

Which points unfortunately to this closed issue here: https://github.com/javafxports/openjdk-jfx/issues/329#issuecomment-459433106

There is a comment about evaluating for openjfx13, but I still see the issue is open and it affects my builds from 14 up to recent from source.

As more and more touch devices with Linux enter the market (As the PinePhone, the Librem5, and the PineTab, etc...) it would be really nice to be able to actually build and run JavaFX applications on these devices.

Tagged:
msgilligan

Answers

Sign In or Register to comment.