Hi! Fantastic library. I have a physical joystick, I'm using it to emulate a gamepad. I take the analogRead, put the value on X/Y axis, and updateState. Under linux it worked on the first try. Under Windows10 it recognizes the gamepad, but the axis value received are wrong (when I move the joystick to the max it only reaches a value of 0.008 instead of 1). Using "setXRange" didn't work, and also mapping the value of the analogRead had no effect.
Description of Issue
Hi! Fantastic library. I have a physical joystick, I'm using it to emulate a gamepad. I take the analogRead, put the value on X/Y axis, and updateState. Under linux it worked on the first try. Under Windows10 it recognizes the gamepad, but the axis value received are wrong (when I move the joystick to the max it only reaches a value of 0.008 instead of 1). Using "setXRange" didn't work, and also mapping the value of the analogRead had no effect.
Technical Details
Sketch File that Reproduces Issue
(loop)
int x_pos = analogRead(joyVerPin); int y_pos = analogRead(joyHorPin); Joystick.setXAxis(x_pos); Joystick.setYAxis(y_pos); Joystick.sendState();