Well I’ve asked Alyssa several times already but never got any clear answer about that.
As Raspberry Pi and similar devices are used together with a touchscreen it would be of a great value if touchscreen support was added.
The regular controls work fine, but if you have a FullHD touchscreen those controls are too small…and using custom canvas based solution don’t work at all.
I just would like to port my old python projects to Xojo…like those below:
PS: There I only touch a glass surface, nothing on it
From what I understand from what you wrote and others in the forum, some touch screens use touch events (that Xojo does not support) and other touch screens manage/use touch+clicks.
I don’t see you mention the manufacturer of your touchscreen.
My guess is that William’s touchscreen send ‘mouse clicks’ too when he touch the screen and Xojo respond to those, and your touchscreen may not send those clicks.
Can you provide what you use on that Issue and maybe you can test with what Xojo is using?
Of course I may be wrong as I have zero experience with this. This is just an idea after reading some of your posts and what Björn posted here:
Its more of Modern OS layers use Touch events while legacy treat it as mouse.
Reason is that touch is far more complicated than mouse clicks touch can be multi touch and gestures and what not.
So Linux does full touch support.
Win32 does Mouse
Modern WinFX does touch.
macOS → No idea, maybe mouse ? Since macOS is not often used with touch screens ? Not sure.
I also tested my Pi 3B using what appears to be the same touchscreen as William. It does work, but the device appears to use traditional mouse events to simulate touch.
Interesting posts on this subject. I have been working on a Pi5 project as an RV ECC control device with 7" touchscreen. In that effort several have pointed to solutions that help with respect to working around the smaller control needs and onscreen keyboard needs that a larger display, keyboard and mouse normally perform.
However finding a touch screen that works with RaspPi5 in my case where Touch Events work at least from the RaspPi OS perspective is something I have not found. The next effort would be to create a solution where XOJO can use those touch features.
I do find USB controls however as mentioned those do not support touch. In this project I really could use pinch to help in viewed content resizing aspects.
@Björn_Eiríksson Could you provide a link to the screen you mention?
Xojo provides events like “TouchStart”, “TouchMove”, and “TouchEnd” which are triggered when a user touches the screen, moves their finger, and lifts their finger respectively.
is this correct and if so how do you get these Events to show up and in what project type - control?