Post Reply 
[newRPL] What do we use touch for?
11-20-2021, 05:00 PM
Post: #8
RE: [newRPL] What do we use touch for?
(11-18-2021 03:14 PM)Claudio L. Wrote:  Lots of interesting ideas!
I guess what I need to work on first is some kind of framework to detect those gestures. For example, how do you know you are swiping from outside the screen and not pressing right at the edge of the screen, then dragging?
I'm going to try to distinguish them based on the speed of the finger when it enters the touchscreen (I imagine if you are swiping from outside the edge your finger is already at speed, while if you touch and move I should be able to see the acceleration of the finger), but I'm not sure how well it will work in real world scenarios.

The way the MOUSE command works on the Prime is that it tracks the position, the relative change in position, and whether the event is a "mouse-down" or "mouse-up" event. I think the Prime can track up to 2 fingers. So based on position, change in position, and time between a tap and release should provide enough information to determine the difference between swiping from the outside of the screen vs. pressing right at the edge and then dragging. As soon as your finger enters the touchscreen area, it's a mouse-down event whether you're tapping or already in the process of swiping. If no mouse-up event occurs, then you're still in a "drag/swipe" state. Since some people naturally swipe slowly while others swipe more quickly, I suspect acceleration will not be of much use beyond determine scroll speed.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [newRPL] What do we use touch for? - Han - 11-20-2021 05:00 PM



User(s) browsing this thread: 1 Guest(s)