Default values for axis

Hello,

I just started working with jinput. I have a gamepad connected and all components are found. However the default values for my Xaxis, Yaxis, Zaxis and Rzaxis is not 0 what i expected but -1.5258789E-5.
When for example pulling the XY stick fully to the front, the Yaxis values increments to -1. Is this normal behaviour?
I’m working on a Vista operating system.
I also tested the gamepad in the control panel of Vista.

-1.5E-5 is -0.000015, thats a very tiny amount off 0, I’m not at all surprised to see analog devices not 0 themselves exactly. It’s the underlying directx driver that gives us the values, we just make them available to java applications. My guess would be that any application with as much precision on the display as JInput would show those same values.

HTH

Endolf