Discuz! Board's Archiver

Mohammed posted on 2011-7-10 20:40

get the position where the touch occur

Hi, sorry for asking so many questions. But i dont understand how i can get the position where the touch occur.

赵韬 posted on 2011-7-11 09:50

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

Mohammed posted on 2011-7-11 20:52

thanks for your answer:P
Page: [1]

Powered by Discuz! X1.5 Archiver   © 2001-2010 Comsenz Inc.