How would I distill the input from the accelerometer into a value between 1 and -1?
It’s really just a matter of testing the sign of the axis and comparing against zero:-
if (Mathf.Abs(axis) < smallValue) {
intAxisValue = 0;
} else {
intAxisValue = Mathf.Sign(axis);
}
(Mathf.Sign treats zero as a positive number, in case you are wondering.)