Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove non-SDL2 platform code and add controller rumble support #318

Merged
merged 9 commits into from
Jan 10, 2023

Conversation

blast007
Copy link
Member

@blast007 blast007 commented Dec 4, 2022

This is still a work in progress. I might also remove the directional force feedback support from the game since there really isn't any hardware that supports that anymore. This still uses the normal Joystick API from SDL, not the Game Controller API. I would wait to implement that for BZFlag 2.6, along with enhancements to the input settings and controller mapping.

I've been testing this on Windows 10, Debian 11, and macOS 11.6.5 with a Playstation Dual Shock 4, 8BitDo SN30 pro wired, 8BitDo SN30 pro bluetooth, and 8BitDo SN30 pro+. The SN30 pro wired doesn't work on macOS. With the 8BitDo bluetooth devices, they work best in either XInput mode or mac mode, with the DInput mode usually (or always?) not working with rumble. Rumble also worked fine on the PS4 (with all three platforms) and 8BitDo SN30 pro wired (on Windows and Linux).

@blast007 blast007 marked this pull request as ready for review January 10, 2023 11:38
@blast007 blast007 merged commit 225dc36 into BZFlag-Dev:2.4 Jan 10, 2023
@blast007 blast007 deleted the cleanup/platform branch February 12, 2023 21:07
@macsforme
Copy link
Member

Sorry I didn't get around to commenting earlier on this. I did a few cursory looks over the changes and had no concerns. I am sure that if there are any outstanding issues they can be resolved in PR #255 (or later).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants