Please add touchscreen support to RPi

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 :wink:

thanks for listening (o;

4 Likes

Did you create a Feature Request
Can you share the number?
https://issues.xojo.com

Not yet…but will do tomorrow…already late evening here (o;

Good morning (o;

Filed now an issue:

https://tracker.xojo.com/xojoinc/xojo/-/issues/77347

What kind of screen is that please? Looks great.

That is just a piece of glass (o;

The image is projected onto it from a Raspberry Pi with RGB output via a TI DLP evaluation module:

3 Likes

Yes this would be awsome to have!

Well so far it seems it won’t come as it work, says Xojo in the issue comments (o;

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.

1 Like

Use a Verbatim PMT-14 touchscreen.

Does that mean that William may be using an older OS with mouse events (for his touchscreen) and Richard is using a newer OS that use touch?

I assume the official RPi 7" touchscreen uses different events as it uses the I2C interface.

USB devices won’t work for custom controls, only when you place the mouse cursor over it…which makes no sense for a touch only device.

Glad our company bought a new version of the ebook Building GUI applications with PyQt6 (o;

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.

1 Like

Simpler devices might be sending simpler events. I have a device that generates actual Touch events, like Richards device does.

1 Like