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

xbox controller control while window out of focus #475

Open
murphdolton opened this issue Jul 2, 2024 · 3 comments
Open

xbox controller control while window out of focus #475

murphdolton opened this issue Jul 2, 2024 · 3 comments
Labels
enhancement New feature or request input issue related to controls

Comments

@murphdolton
Copy link

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 fgsfdsfgs added enhancement New feature or request input issue related to controls labels Jul 2, 2024
@fgsfdsfgs
Copy link
Owner

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:

  • If you're on Windows, you can use this script to run the game.
  • If you're on Linux, run it like so: SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS=1 ./pd.exe.

@murphdolton
Copy link
Author

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

@fgsfdsfgs
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request input issue related to controls
Projects
None yet
Development

No branches or pull requests

2 participants