<gesture_src.zip>
-- ThinkSlow - cross-platform gaming experiments ( who ? why ? what ? ) -> http://thinkslow.net ( how ? when ? ) -> http://blog.thinkslow.net
Hi,
I would like to use your code. Could you upload it to github/ bitbucket/whatever ?
Thanks :)
François
Le 13/12/2012 15:23, Rocks Wang a écrit :
Hi anyone has experience working with swipe? Originally in my engine I just use the average pan-speed & pan-direction as swipe velocity vector (convered to polar coordinate), however I feel it's too fast, in the attached source code I've shrinked the value to 1/4, but I don't think it's a good smell, any suggestion? or maybe it's a defect of my code?
Rocks
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
--
ThinkSlow -
cross-platform gaming experiments
( who ? why ? what ? ) -> http://thinkslow.net
( how ? when ? ) -> http://blog.thinkslow.net
Great! So far it works well! (tap, pan, swipe)
But I had to modify the code so that I can add listener and recognize
gestures to the whole stage.
So next what would be great would be to have a release on haxelib + a
proper license.
if you could make it soon, I could use your lib in my latest game
(www.strangemasks.com) this very week :)
Congratulations :)
Le 31/12/2012 14:19, whitetigle a �crit :
> Ok it was a problem of context. :)
>
> Le 31/12/2012 13:37, whitetigle a �crit :
>> Once the first swipe is done, I only get mousemoves and mouseout events.
>>
>> Le 31/12/2012 13:17, whitetigle a �crit :
>>> I am trying to use swipe however, it just works once... never twice...
>>>
>>> I am using it like this (in a sprite):
>>>
>>> new RoxGestureAgent(this, RoxGestureAgent.GESTURE);
>>> this.addEventListener(RoxGestureEvent.GESTURE_SWIPE, onTouch );
>>>
>>> function onTouch(e:RoxGestureEvent){
>>> trace( "onTouch " + e.type );
>>> switch (e.type) {
>>> case RoxGestureEvent.GESTURE_SWIPE:
>>> trace("swipe");
>>> }
>>>
>>> After playing with trace, it seems that MOUSE_DOWN is never called
>>> more than once.
>>>
>>>
>>> Le 31/12/2012 12:00, whitetigle a �crit :
>>>> Cool I was just starting to play with it :)
>>>> Thanks!
>>>>
>>>> Le 31/12/2012 11:32, Cambiata a �crit :
Do you have some code or demo to share, showing the ui/framework functions?
Jonas
Hi just so you know, on my ipad 2 on nme 3.5.4 touchevents are not fired
but mouseevents are although multitouch is correctly found.
It took me some time to figure why events would not fire.
++
Francois
Le 1/1/13 8:01 AM, Cambiata a �crit :