記事一覧

Get number of fingers touching

現在タッチされてる指の数を
[[event allTouches] count]
で取得できるってのを知りませんでした;

[touches allObjects]
でそのイベントをトリガーしたタッチを取得できるのは知ってたんですが;


I didn't know that I can get the number of fingers that are currently touching by doing this:
[[event allTouches] count]

I only knew this
[touches allObjects]
which retrieves only the touches that triggered the event.