Add Android accelerometer value clamping. Closes #350.