The joystick is an old analog model, using PC Game port instead of USB. The code and circuit diagram is on TinkerCAD: [ Ссылка ]
It's an analog joystick, so each axis is models as a potentiometer. I used these resources for joystick pinout
[ Ссылка ]
[ Ссылка ]
![](https://s2.save4k.ru/pic/s8qhwEc9Rw0/maxresdefault.jpg)