cameronmcefee/plax — pull request #44 by magebarf (2013-05-01 22:56:27+00:00)
Title: Configurable degrees of tilt for gyro parallaxing

(Sorry, seems GitHub won't let me create a pull request without my merging of branches as an additional commit)

A easy change that I figured while restricting the range for the gyro was configurable range of tilt, as it today was hard coded to limit the range to a total of 60 degrees (30 degrees in each direction from the center position).

This will bring back options to do what was removed when restricting the range. With this change the same result can be achieved by increasing the x and y range for the objects, and instead increase the gyroRange value when enabling plax.

Also, while fixing this I noticed that the activity target was actually being set upon every mousemove event.