Gameport Joystick centering?

Hello all,

I was planning to turn an old Gameport joystick into an USB one using Arduino today, but I encountered a problem for wich I couldn't find a solution.
If my joystick is in center position, then the pot is at 79% instead of 50.
I tried several fixes, but none worked.
I need to get a value of 0 to 100 (doesn't matter really, but this is easy to work with), center value has to be 50%; joystick 45° to the left has to be 25%, joystick 45° to the right has to be 75% and so on, anyone know how I can get these values?

Thnx in advance :wink:

You need to calibrate for your actual hardware - start by measuring the output values for each position and working out the mapping to
a linear 0..100 range. Joysticks normally only use a small range of movement of a standard pot.