libnui / nui3

libnui v3
http://libnui.net
Mozilla Public License 2.0
163 stars 31 forks source link

Possible nglMouseInfo addition on iPhone #16

Closed Jaydee2190 closed 13 years ago

Jaydee2190 commented 13 years ago

Would it be possible(or desirable!) to have a xStart and yStart property that is set to x,y when UITouchPhaseBegan starts up as well as a nglTime of the Began phase?

That way on Unclicked we can easily see whether it's a swipe or not. (amount of movement relative to the start of the touch and the timeinterval)

Just a thought, i'm relatively new to iphone, but I think this should be all that's required...

meeloo commented 13 years ago

Isn't that something that you can track in you application code? I usually do this in my widget's mouse event handling code. What benefits would you see to adding that information at the source compared to tracking it by hand?

Jaydee2190 commented 13 years ago

Multi-touch mainly. It'd just save from having to keep state in the widgets themselves.

meeloo commented 13 years ago

added a timestamp and a pointer to the counterpart event in nglMouseInfo to ease event tracking. closed by d7d65ca0ba95e6ecc96cf33435aef121574c036e

meeloo commented 13 years ago

ok, as you see I think I have added what you need to ease your task :-). Let me know if that works for you.