Accelerometer not working as it should?

Why is this code not working?

– Accelerometer
local motionx = 0
local motiony = 0

local function onAccelerate( event )
motionx = 35 * event.xGravity
motiony = 35 * event.yGravity
end
Runtime:addEventListener (“accelerometer”, onAccelerate)

local function moveball (event)
ball.x = ball.x + motionx
ball.y = ball.y - motiony
end
Runtime:addEventListener(“enterFrame”, moveball)

I’m using the Corona remote to try tilt the ball, but it’s not working? [import]uid: 14018 topic_id: 5301 reply_id: 305301[/import]

The accelerometer doesn’t work in the simulator. Nor does the GPS, the multitouch system… and a few others. [import]uid: 13720 topic_id: 5301 reply_id: 17646[/import]