One caveat
You'll also need to escape your d-pad handling to allow for manual movement. In my case, I'm using a custom physics engine to control y velocity. See use of the "calculatingPhysics" variable below:
if calculatingPhysics == 0 then
if cancelDPad==0 then
log "event dy = {event.dy}"
if event.dy!=0 then
realY = event.y
realY -= event.dy
cancelDPad = 1
goto event.px,realY
end
else
cancelDPad = 0
end
else
calculatingPhysics = 0
end if
call "calculateMove"
end