QUESTION about X-accelerometer range or limit ....

 QUESTION about X-accelerometer range or limit …

i want my green.x  accelerometer to 70 - 250 only…

i dont know how…

this is my code…


    local acc = {}

   local sensitivity = 4
    local centerX = display.contentWidth * 0.5

    function acc:accelerometer(e)
        green.x = centerX + (centerX * e.xGravity * sensitivity)
    end

        Runtime:addEventListener(“accelerometer”, acc)


Please only post your question once.  Followup’s to this thread please:

http://forums.coronalabs.com/topic/40603-question-about-x-accelerometer-range-or-limit/

Please only post your question once.  Followup’s to this thread please:

http://forums.coronalabs.com/topic/40603-question-about-x-accelerometer-range-or-limit/