Discussion:
Can Tk 9.0 handle touch events of a touch display?
(too old to reply)
Robert Csok
2024-12-21 12:57:54 UTC
Permalink
Hello everyone,

While reading through the “Highlights of Tk 9.0” I noticed the point
“Platform Features and Conventions: many improvements, including
two-finger gesture support where available”. I was initially pleased
because I thought that Tcl 9 could react to touch events of a touch
display. This function would make it easier to operate our cadastre
application on devices with a touch-capable display (“Pinch To Zoom” etc.).

However, I had to realize that this message probably refers more to the
possibility of scrolling with two fingers on a touchpad (new event type
“TouchpadScroll”). I also came across TIP 570, which describes the
desired feature:

https://core.tcl-lang.org/tips/doc/trunk/tip/570.md

The proposal has been in a draft state since 2020.

Can anyone give a hint on a possibility, trick or workaround to react to
touch events of a touch display in a Tk application under Linux?

Best regards

Robert
Harald Oehlmann
2024-12-21 16:45:39 UTC
Permalink
Robert,

I have authored the TIP in 2020 and the described knowledge there has
not changed.
As it is clear that this in an important feature, there was never any
movement here.
Eventually, undrowish by Christian Werner has some support on Linux.

On Windows, we only have the button press emulation, that's all.

And the branch by Peter Sputh did not get any love since 2022.
Aparently, Peters work also has some Mac aspects.

Any initiative appreciated - we need that !

Take care,
Harald
Post by Robert Csok
Hello everyone,
While reading through the “Highlights of Tk 9.0” I noticed the point
“Platform Features and Conventions: many improvements, including two-
finger gesture support where available”. I was initially pleased because
I thought that Tcl 9 could react to touch events of a touch display.
This function would make it easier to operate our cadastre application
on devices with a touch-capable display (“Pinch To Zoom” etc.).
However, I had to realize that this message probably refers more to the
possibility of scrolling with two fingers on a touchpad (new event type
“TouchpadScroll”). I also came across TIP 570, which describes the
https://core.tcl-lang.org/tips/doc/trunk/tip/570.md
The proposal has been in a draft state since 2020.
Can anyone give a hint on a possibility, trick or workaround to react to
touch events of a touch display in a Tk application under Linux?
Best regards
Robert
undroidwish
2024-12-21 21:29:40 UTC
Permalink
Post by Harald Oehlmann
And the branch by Peter Sputh did not get any love since 2022.
Indeed is it part of vanillawish for Win32 since this check in

https://www.androwish.org/home/info/35d71c4ec8

Thus, it can be played with, tested, weight, and found to be
too light or too heavy.

Due to sheer LUCK, a current vanillawish isn't that far away
for one's fingertips and mouse clicks. Read more in

https://wiki.tcl-lang.org/page/LUCK

Cheers,
Christian
undroidwish
2024-12-21 21:35:34 UTC
Permalink
Post by undroidwish
Due to sheer LUCK, a current vanillawish isn't that far away
for one's fingertips and mouse clicks. Read more in
  https://wiki.tcl-lang.org/page/LUCK
Aah, reading the OP thorougly I should have seen Linux. My bad.
Then play with undroidwish which should have touch support by
SDL2's design. And is part of LUCK, too.

Cheers,
Christian

Loading...