Hello,
I am with huawei y6, and this code below do nothing on the device but return a response on simulator
local function listener( event ) if event.isShake then print(1) system.vibrate() end return true end Runtime:addEventListener( "accelerometer", listener )
But this code always work on my device (always return something, even when my phone is just on my table without moving). Is this a bug ?
local function listener( event ) system.vibrate() if event.isShake then print(1) end return true end Runtime:addEventListener( "accelerometer", listener )