Discuz! Board

 

 

Search
Discuz! Board Forum Integration Questions get the position where the touch occur
View: 484|Reply: 2
go

get the position where the touch occur

Rank: 3Rank: 3

Post on 2011-7-10 20:40 |All posts
Hi, sorry for asking so many questions. But i dont understand how i can get the position where the touch occur.

Rank: 4

Post on 2011-7-11 09:50 |All posts
use setevent(EVENT_IDS, callback [, param]) to register a callback, the position is in the callback

function callback(node[, event, param, x,y]){}

x,y is where is touch happens in Node coordinates, not world coordinates. There is a section about Node coordinates in manual.pdf

Rank: 3Rank: 3

Post on 2011-7-11 20:52 |All posts
thanks for your answer
Security Q&A Change Security code Change

Archiver|Comsenz Inc.

All time is GMT+8, 2013-5-24 04:49 , Processed in 0.060858 second(s), 10 queries .

Powered by Discuz! X1.5

© 2001-2010 Comsenz Inc.