Hi,
Its mentioned in the API docs to use event.pressure but I am getting the value less than 0.4 when deploying in device.
Can u specify the way to implement 3d Touch for IOS?
[lua]
function onButtonTouch( event)
– body
if ( event.phase == “began” ) then
if(event.pressure ~= nil) then
print(event.pressure)
onScreenMessage.textObject.text = event.pressure
else
print(event.pressure)
onScreenMessage.textObject.text = "Touch event began on: " …event.name… event.target.id
end
elseif ( event.phase == “ended” ) then
onScreenMessage.textObject.text = "Touch event ended on: " … event.target.id
end
return true
end
[/lua]