B4J Question Touchscreen mouse event question

rspitzer

Active Member
I am using an official raspberry pi 7 inch touchscreen. The touchscreen is a capacitive one. I was under the assumption that the touchscreens are basic HID devices. I am having an issue with capturing mouse events (Touch) on the screen. The _MousePressed and _MouseReleased events do not fire, only the mouse _MouseEntered and _MouseExited events work. This is a bit inconvenient. Is this an issue with the touchscreen not sending the events? Does anyone have a suggestion on how to troubleshoot this issue. Ideally I would like have the normal mouse events all working, so I don't have different code per different type of display.?
 

rspitzer

Active Member
The problem is solved, the issue was not the JDK version but the JFX version, I switched from JFX 11, to JFX 17. The mouse events seem to now be working.
 
Upvote 0
Top