Building a touch event driven UI from scratch: what algorithms or data types?

Posted by user1717079 on Game Development See other posts from Game Development or by user1717079
Published on 2012-10-10T19:48:42Z Indexed on 2012/10/10 21:56 UTC
Read the original article Hit count: 258

Filed under:
|
|

I have a touch display. As input I can receive the coordinates and how many touch points are in use, basically I just get an X,Y couple for every touch event/activated point at a customizable rate.

I need to start from this and build my own callback system to achieve something like Object.onUp().doSomething() meaning that I would like to abstract just the detection of some particular movements and not having to deal with raw data: what algorithms can be useful in this case? What statements? Is there some C++ library that I can dissect to get some useful info?

Would you suggest the use of an heuristic algorithm?

© Game Development or respective owner

Related posts about c++

Related posts about events