Skip to content

Fixes and enhancements to joystick support#4168

Merged
OBattler merged 6 commits into
86Box:masterfrom
lemondrops:joystick
Feb 18, 2024
Merged

Fixes and enhancements to joystick support#4168
OBattler merged 6 commits into
86Box:masterfrom
lemondrops:joystick

Conversation

@lemondrops

Copy link
Copy Markdown
Contributor

Summary

  • Increase the maximum number of supported joystick axes to 16; instances of magic numbers for maximum number of axes/buttons/POV hats have been replaced with macros
  • Raw input (Windows) backend: Add support for more axis types, including DirectInput slider axes; separate slider handling left over from the old backend has been removed
  • SDL (Linux/Mac) backend: Fix axes beyond 6 being non-functional, properly enforce the maximum axis/button/POV limit, and fix pointless iterations over not-present axes and buttons
  • Merge the joystick_*.h headers into gameport.h; this mirrors the treatment of other headers containing only device declarations

Checklist

References

N/A

@OBattler
OBattler merged commit 9d51d35 into 86Box:master Feb 18, 2024
@lemondrops
lemondrops deleted the joystick branch February 18, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CH Flightstick Pro emulation not working right

2 participants