DOSBox-x and too many buttons

Moderator: AdminGroup

mattcaron
Posts: 93
Joined: Wed Oct 13, 2021 20:50
Has thanked: 55 times
Been thanked: 14 times

DOSBox-x and too many buttons

Postby mattcaron » Sun Nov 12, 2023 3:58

For anyone who, like me, uses modern sticks with old games, my PR to allow DOSBox-X to map up to 96 buttons (was 32) was just merged, so should be in the next release.

(PR https://github.com/joncampbell123/dosbox-x/pull/4596)

I also checked an button combinations seem to work, so I was able to map ALT+Arrow keys to a STECS thumb hat to vector thrust on Jane's ATF.

Ron61
Posts: 3277
Joined: Tue Jan 15, 2013 23:56
Location: г.Минск
Has thanked: 44 times
Been thanked: 637 times

Re: DOSBox-x and too many buttons

Postby Ron61 » Mon Nov 13, 2023 11:27

For older games that can only handle 32 buttons, you can split the 128 button array into 32 button virtual controllers.

Delta
Posts: 97
Joined: Mon Sep 25, 2023 23:20
Has thanked: 3 times
Been thanked: 23 times

Re: DOSBox-x and too many buttons

Postby Delta » Tue Nov 14, 2023 13:22

Interesting choice to go with 96 to minimize overhead, since that value seems to be chosen specifically to cater to your throttle. I would be surprised if that extra overhead of going with 128 buttons (a common in-game limit due to Microsoft's DIJOYSTATE2 data structure, as well as the firmware limit of VKB's nJoy32 and many other firmwares in the industry and DIY spaces) had any measurable performance impact.

Ron61 wrote:For older games that can only handle 32 buttons, you can split the 128 button array into 32 button virtual controllers.


Sadly, you can only get up to 64 buttons (and 11 axes) this way at the moment, since the update that gave us VC PoV switches broke a lot of other VC functionality (buttons on the 3rd and 4th controller, more than 3 axes on the second controller). The last firmware without this defect is not available for STECS.

mattcaron
Posts: 93
Joined: Wed Oct 13, 2021 20:50
Has thanked: 55 times
Been thanked: 14 times

Re: DOSBox-x and too many buttons

Postby mattcaron » Wed Nov 15, 2023 5:09

Yeah, I realized this after I made the change and it was accepted by upstream. As I haven't used or cared about Windows in many years, hopefully this is understandable. Feel free to bump the number and submit the PR.

That is indeed unfortunate, but, as I do not use that feature, I did not notice its absence. Hopefully, it will be fixed soon.


Return to “General discussions”

Who is online

Users browsing this forum: No registered users and 99 guests