touchstartçã®touchã¤ãã³ãã®å¼æ°eã«e.touches
ãå«ã¾ãã¦ãã¦ããã®ä¸ã«ã¿ãããã¦ããæã®æ
å ±ãé 次å
¥ãã
- æAãæ¼ä¸
- æBãæ¼ä¸
- æAãé¢ã
- æAãæ¼ä¸
以ä¸ã®æä½ãããã¨iOSã§ã¯
[æA]
[æA, æB]
[æB]
[æB, æA]
ã¨æ å ±ãå ¥ãã®ã«å¯¾ãã¦Androidã¯
[æA]
[æA, æB]
[æB]
[æA, æB]
ã¨æ
å ±ãå
¥ãã®ã§æ³¨æãå¿
è¦ãè¦åããã«ã¯e.touches[n].identifier
ã使ããã¡ãªã¿ã«ãã®identifierãéã£ã¦ãã¦ãAndroidã ã¨0, 1, 2...
ã¨ãªãããiOSã ã¨256808260, 256808261...
ã¿ãããªå¤ãå
¥ãã
æã®æ¼ä¸æã«Androidã§ã¯identifierã0ããé ã«è¦ã¦ç©ºãã¦ãå¤ããã£ãããããå²ãå½ã¦ã¦identifieré ã§ã½ã¼ããã¦ãã¦ãiOSã¯identifierãæ大ã®å¤+1ã§å²ãå½ã¦ã¦identifieré ã§ã½ã¼ããã¦ããã¿ããã