Futile icon indicating copy to clipboard operation
Futile copied to clipboard

Create easy multi-touch system

Open MattRix opened this issue 12 years ago • 5 comments
trafficstars

The current multi-touch system is decent, but there should also be an even simpler API for it, something that can just be accessed on Futile.touchManager, and that works like Unity does.

MattRix avatar May 02 '13 20:05 MattRix

One thing i've run into in my experiments is that i would like to have a delegate able to receive the array of touch events, rather then it only being available to the touch-enabled object itself.

hyakugei avatar Jul 17 '13 13:07 hyakugei

Well you can make any object (not just FNodes) implement FMultitouchableInterface and FSingleTouchableInterface, if you want, which basically gives you the same thing.

MattRix avatar Jul 17 '13 18:07 MattRix

ah i didn't realize that i could do that - i thought it had to be a child of a Container or other "on stage" object. You are right, that totally removes the need for the delegate/event style.

Thanks for the pointer!

hyakugei avatar Jul 17 '13 19:07 hyakugei

FWIW I managed to use Prime31's TouchKit https://github.com/prime31/TouchKit and thanks to Matt's advice I just had to adjust the coordinate system to Futile's and it works perfectly, I'm still getting used to the internals of Futile but maybe there is a way to include TouchKit as an option built-in into Futile as it is with GoKit?

foobraco avatar Jul 17 '13 23:07 foobraco

@foobraco i've came across touchkit too, and since i saw this comment of yours i'm wondering what did you had to adjust on the coordinates system to TouchKit play nice with Futile ?

diegodorado avatar Jul 11 '14 17:07 diegodorado