Is there a way to know what values can be expected when reading axis?
E.g. i have logitech dual action gamepad.

When reading out the axis the lowest value get is about 480 and the highest is 1000 and 0 for when not touched. Is my gamepad at fault or mmsystem?

In total it has 4 axis (two thumbsticks, or whatever they are called). So i need to read out x and y for the first stick. The second has to be read out as z and r. Is there any logic for that? Or can the axis be numbered as well?

Are there documents on this?

Also how do i now what button is where on the gamepad? Or dont i need to know that? As for my gamepad the numbering seem to be correct, but does that also aply to other gamepads?