The Touch Button Node's ability to differentiate between "SingleTap" and "TapAndHold" is a great idea in theory, however I constantly run into problems using these outputs. This starts with unreliable Touch Screens, and gets worse with the many different levels of user's "touch skills" (the fat-fingered slow poke, the ephemeral fairy, the hyperactive basher, the frightened OAP etc. etc.).
After trying a lot of touch option (Devive / Interaction settings) I found the most reliable method to detect (button-)touches to be this: connect the (boolean) "TouchPressed" to an Event's "Shot" property.
If you guys have any other ideas (or comments on this method) I'd love to hear about it.
sq
Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
Most reliable TouchButton-Output?
Moderator: Support
-
- Posts: 666
- Joined: 18 Jan 2012, 20:56
- Location: wuppertal
- Contact:
Re: Most reliable TouchButton-Output?
hi sq
im using the on pressed too!
in combination with timers this is for me the best way to decide between tab and touch!
greetz
christian
im using the on pressed too!
in combination with timers this is for me the best way to decide between tab and touch!
greetz
christian
Re: Most reliable TouchButton-Output?
hah, i know these!the fat-fingered slow poke, the ephemeral fairy, the hyperactive basher, the frightened OAP etc. etc.
![Laughing :lol:](./images/smilies/icon_lol.gif)
Well, the original button events work great for mouse input, but as chris said, for touchscreens/radarTouch/etc. you have to build your own touch events.
I extended the touch button with 4 nodes to make it very reliable for most touch devices. The bottom two events are optional, important are 2 events with their shot connected to touch.pressed, one of them going through an invert(logical).
event.pressed starts a reverse timer (start.time defines TapAndHold minimal duration), the timers elapsed event is your TapAndHold.
The released.event.enabled is connected to timer.running, and its output is your SingleTap, this also resets the timer.
The benefit of this is not only an better Tap recognition (if touch started on button and is moved outside before release, it will still trigger) but also that the SingleTap behaves like most UI buttons (trigger on release)