vsulako / AFFBWheel

Arduino based racing wheel controller with force feedback
MIT License
78 stars 18 forks source link

2 joy 16 b #61

Open Brandy0841 opened 3 months ago

Brandy0841 commented 3 months ago

Nice work, congratulations. I have a question. Is it possible to make a steering wheel with 2 joysticks and 16 buttons? It would be nice to be able to use 2 joysticks for games like farming simulator and snowrunner. Thanks! @vsulako

vsulako commented 2 months ago

I don't understand what do you mean by 2 joysticks. Are they thumbsticks? Gaming controller can have up to 8 analog axes. 1 axis is wheel, 3 are for pedals, and there are 4 spare axes, so nothing prevents from connecting 2 thumbsticks (2 axes each).

Ertugrulbabaci commented 2 months ago

I don't understand what do you mean by 2 joysticks. Are they thumbsticks? Gaming controller can have up to 8 analog axes. 1 axis is wheel, 3 are for pedals, and there are 4 spare axes, so nothing prevents from connecting 2 thumbsticks (2 axes each).

Is the maximum limit that Arduino can take 8 axes or is it related to the codes written? For example, can't you change the codes to 10 axes?

vsulako commented 2 months ago

It is DirectInput limitation. Windows will only recognize up to 8 axes and 128 buttons in a single HID gaming controller, even if more are declared, excess ones will not work. Also, there are only 8 axis names in HID specifications for a generic controller: x,y,z, rx,ry,rz, slider,dial. May be it matters too.