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

Linux: Don't use udev for joypad hotloading when running in a sandbox #76961

Merged

Conversation

akien-mga
Copy link
Member

@akien-mga akien-mga commented May 11, 2023

udev doesn't work in sandboxes, notably the new Steam container runtime as found notably on the Steam Deck, and in Flatpak/Snap packages.

Like SDL does, when we detect such a containerized environment, we fall back to parsing /dev/input directly.
See smcv's comments in #76879 for details.

Fixes #76879.

3.x backport: #76962.

udev doesn't work in sandboxes, notably the new Steam container runtime
as found notably on the Steam Deck, and in Flatpak/Snap packages.

Like SDL does, when we detect such a containerized environment, we fall
back to parsing `/dev/input` directly.
See smcv's comments in godotengine#76879 for details.

Fixes godotengine#76879.
@akien-mga akien-mga force-pushed the linux-joypad-skip-udev-if-sandboxed branch from 00596ea to 788cb74 Compare May 12, 2023 09:30
@akien-mga akien-mga merged commit e0bbb83 into godotengine:master May 12, 2023
@akien-mga akien-mga deleted the linux-joypad-skip-udev-if-sandboxed branch May 12, 2023 12:10
@akien-mga
Copy link
Member Author

Cherry-picked for 4.0.3.

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.

Controller reconnection does not emit joy_connection_changed signal on Steam Deck
1 participant