dosbox-staging / dosbox-staging

DOSBox Staging is a modern continuation of DOSBox with advanced features and current development practices.
https://www.dosbox-staging.org/
Other
1.32k stars 157 forks source link

DOSBox doesn't respond to Switch Pro controller on macOS #3992

Open Ekamekia opened 1 month ago

Ekamekia commented 1 month ago

Are you using the latest Dosbox-Staging Version?

Different version than latest?

0.82.0-rc1 (9d55e)

What Operating System are you using?

macOS (Apple Silicon)

If Other OS, please describe

MacOS 15.0.1

Relevant hardware info

M1

Have you checked that no other similar issue already exists?

A clear and concise description of what the bug is.

Dosbox won't respond to Nintendo Switch Pro controller on MacOS. Up until today I've been using a Playstation 4 controller and it has worked without any problems. Connecting the Switch controller is the same procedure as the Playstation controller, connect from the bluetooth menu and it shows up as 'Pro Controller'

I tested it out in OpenEmu first and it recognized the controller, but Dosbox completely ignores it, or is unaware of it both in games and in the mapper.

Steps to reproduce the behaviour.

Explain how to reproduce

  1. Obtain Pro Controller
  2. Connect to Mac
  3. Launch Dosbox
  4. Enter Mapper
  5. Nada

Download URL of affected game or software

No response

Your configuration

No response

Provide a Log

No response

Code of Conduct & Contributing Guidelines

johnnovak commented 1 month ago

Yeah, no idea. It's unlikely this will be addressed as I don't think any of us in the core team has this controller. Neither do we want to start adding controller specific hacks/workarounds/etc.

The real solution will be using SDL's ControllerDB project. Seems like they did add support for this particular controller a while ago:

https://github.com/libsdl-org/SDL/commit/404cb27677b4d6f953a55d181508b5f690df0993

Then whatever SDL and ControllerDB supports, we'll support it. But that won't happen anytime soon, so don't hold your breath. In the meantime, just use some "true and tested" common controller with Staging (like the Xbox 360 controller on Windows, that just works without a hitch).

Btw, can does it work with Staging on Windows? Can you test that?

Ekamekia commented 1 month ago

<<Btw, can does it work with Staging on Windows? Can you test that?>>

Sorry, Didn't see your question there. Tested it, Yes, it works in Windows.

johnnovak commented 1 month ago

<<Btw, can does it work with Staging on Windows? Can you test that?>>

Sorry, Didn't see your question there. Tested it, Yes, it works in Windows.

Cheers. macOS specific SDL problem, I don't think we can do much about it. You could try other SDL2 apps on macOS that don't use ControllerDB to confirm that (e.g., some other emulator).

Ekamekia commented 1 month ago

Yeah, I wouldn't worry about it at all. I'm probably the only asshat in the world trying to use a Switch Pro controller to play DOS games on MacOS. Besides its started to have a massive input lag for whatever reason. Back to PS4!