GAkit icon indicating copy to clipboard operation
GAkit copied to clipboard

Support multitouch

Open shi-weili opened this issue 2 years ago • 2 comments

Currently, ga::TouchEvent doesn't track touch ID, which is needed to track individual touches.

Also, consider adding a toggle to turn on/off multitouch support. Not sure if that should be in GA::Kit, ofxGAkit, or an example app, though.

shi-weili avatar Mar 16 '23 19:03 shi-weili

Good call - I think multitouch id tracking for now would just mean adding an id field to ga::TouchEvent (it's actually in a comment as a reminder - just need to uncomment it!) https://github.com/gallagher-tech/GAkit/blob/57b58a1bcf911ea9ed72da7f1964da11c73789a2/src/ga/events.h#L65

tyhenry avatar Mar 23 '23 20:03 tyhenry

Then we can extend the ga::TouchZone component and probably ga::Scene to toggle multitouch support at local component and global levels. We'll just need some logic to store / compare touch ids.

tyhenry avatar Mar 23 '23 21:03 tyhenry