<div dir="ltr">Hi all, I am a heavy user of wine and proton for games and for some time the failures some games had with my HOTAS (Hands On Throttle-And-Stick) have been bothering me. I tried to take a look at wine code and found out that the maximum numbers of buttons for a single device was hardwired to 32 and the maximum number of analog axes was hardwired to 4 pairs (8 axes). My own HOTAS, a very common Logitech X52 Pro, has a bigger number of buttons -- 39, so the higher buttons would "carry over" to register like they were lower buttons -- and this prevented it from working on games. I increased these hardwired numbers to 64 and 8 respectively, and the patch seems to have largely worked on all games I used it -- for example, I am only able to play Elite: Dangerous with my patched proton version.<br clear="all"><div><br></div><div>However, there have been some problems, like a few sliders not working -- slider 7 (you could check the numbering of axes with a program like antimicro on Linux) does not seem to register in Star Citizen, for example. I noticed from joystick.c that the analog axes seem to have specific names and functionality, like DIJOFS_RX and DIJOFS_SLIDER, and if I understood what's going on, it might prevent the code to work generally with obscure devices that have a couple number of sliders, is that correct? How could I get the code to recognize and translate my axes to games?</div><div><br></div><div>Also, for this patch to be complete I will also need to change the GUI for testing joystick via "wine control", and I do not have much experience with Windows programming. Any help would be welcome.</div><div><br></div><div>I have also described the problem on this forum post: <a href="https://forum.winehq.org/viewtopic.php?f=2&t=33615&p=126895#p126895">https://forum.winehq.org/viewtopic.php?f=2&t=33615&p=126895#p126895</a></div><div>And the bug report for it at <a href="https://bugs.winehq.org/show_bug.cgi?id=48799">https://bugs.winehq.org/show_bug.cgi?id=48799</a></div><div>And I have also talked about it on gamingonlinux: <a href="https://www.gamingonlinux.com/forum/topic/4330">https://www.gamingonlinux.com/forum/topic/4330</a></div><div><br></div><div>This patch has around 50 to 60 hours of testing.<br></div><div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Cláudio "Patola" Sampaio<br>MakerLinux Labs - Campinas, SP</div><div><a href="https://github.com/Patola/resume" target="_blank">Resume</a> <a href="mailto:patola@gmail.com" target="_blank">Gmail</a> - <a href="mailto:patola@makerlinux.com.br" target="_blank">MakerLinux</a> - <a href="https://www.youtube.com/user/makerlinux" target="_blank">YOUTUBE</a>!<br><a href="https://www.facebook.com/patolinux" target="_blank">Facebook</a> - <a href="https://www.facebook.com/makerlinux" target="_blank">Facebook da MakerLinux</a> -<a href="http://buscatextual.cnpq.br/buscatextual/visualizacv.do?id=K4763932Z5" target="_blank"> Lattes</a><br><br></div></div></div></div></div></div></div></div></div></div></div>