I am trying to run a javaFX application on a raspberry pi 3b+ with a 7" 1024x600 touchscreen by Lebula. When I plug a mouse in, the application works as normal, but, when I try to use the touchscreen, it does not work. The touch screen does work on the regular desktop, however. I am using mouse events in the javaFX code instead of touch events, but I don't think that is the problem. How can I make the javaFX application accept input from the touchscreen?

| improve this question | | | | |
  • you are not using touch events and you do not think that is the problem? ... have you ran a test to be sure? – jsotola Mar 14 at 18:18
  • I saw that a mouse event also works with touch, but that is a good idea, I will try it. – ssemtner Mar 14 at 18:19
  • I just tried and it still doesn't work. @jsotola – ssemtner Mar 14 at 18:36
  • Do you know which events your touchscreen produces? Is it key press/release, or button clicks? – Dmitry Grigoryev Mar 18 at 22:40
  • @Dimitry Grigoryev How do I figure that out? – ssemtner Mar 19 at 13:46

I think there is a basic problem with the support of the touchscreen under "Raspbian buster". My JavaFX application did not respond to the touch events and I thought the problem was with the application until I tested touch screen support on existing applications. Some widgets respond to touch, but some do not. The pulldowns will be e.g. is displayed, but the items it contains do not react to touch. I have the "official 7 inch touchscreen". Install Raspbian strech and test with it.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.