i-Phone Gesture event
[Gesture Events]
When the user switches from a one-finger tap to using two-fingers, it's considered the beginning of gesture.
This causes gesture events created, which can be interrupted by overriding the appropriate methods
mouseDown ---> gestureStarted ----> gestureChanged ----> gestureEnded ----> mouseUp
위와 같이 첫 touch는 mouse처럼 동작시키지만 2번째 touch 부터는 gesture event로 동작시키고 gestureChanged 를 통해 어떤 action인지를 판단하는 것으로 보인다.
--> 이전까지의 내 생각
2009.12.06
만약 위와같이 첫번째 touch가 mouseDown이고 2번째 touch 부터 gesture 라고 하게 되면, 개발자의 코드는 mouseDown과 getsure쪽에 동시에 코드을 추가해야 한다.
이를 방지하기 위해서는 mouseDown 과 gestureStarted를 동시에 첫번째 touch때 보내는 것이다.
그렇게 되면, multi-touch 용 application들은 따로 mouseDown을 사용하는 것이 아니라 gestureStarted를 사용하게되고,
그렇지 않은 application들은 그냥 기존처럼 mouseDown event만 받아서 처리하면 된다.