fgsfdsfgs / perfect_dark

work in progress port of n64decomp/perfect_dark to modern platforms
MIT License
1.2k stars 74 forks source link

xbox controller control while window out of focus #475

Open murphdolton opened 3 months ago

murphdolton commented 3 months ago

Hello, I'm trying to set up 8 player local splitscreen using the netplay build. The game doesn't accept controller input when the game window is out of focus. Can you add an option or just make it default to controllable when out of focus? Thanks

fgsfdsfgs commented 3 months ago

I can add the option later, but for now you can set the SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS environment variable to 1.

If you don't know how to do that:

murphdolton commented 3 months ago

Thanks, 8 player local splitscreen is working like a charm. This is gonna blow some of my buddys minds

fgsfdsfgs commented 3 months ago

Keep in mind that netplay is very early and a lot of the game modes and some weapons do not work.