Sensor smoothing.

jimseng

Active Member
Licensed User
Longtime User
Hi.
I am educating myself on orientation sensors. I am just looking into tipping the phone and moving a scroll bar. It works fine but is a bit jittery because the sensorchanged event is a little slow (or the phone sensor update is slow). I am trying to come up with a way of smoothing the response. I have been looking at comparing the changes and moving the scrollbar in a loop but so far I have't had fantastic success. Has anybody done this or have any good ideas?

Cheers
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…