Quote:
Originally Posted by byteit101
it is 0 to 1 not -1 to 1
|
Oh, right. Most of the other functions are -1 to 1, didn't look at the docs.
If you need to scale (-1, 1) to (0, 1) you can use
prevVal = joystick(1)->Get(); //-1 to 1 value
ScaledVal = (prevVal + 1)/2; //Scaled to 0 to 1