Skip to content

Commit

Permalink
Merge pull request #77458 from Riteo/late-night-preprocessing
Browse files Browse the repository at this point in the history
Build `JoypadLinux` sandbox detection method only with udev
  • Loading branch information
akien-mga committed May 25, 2023
2 parents 4203389 + 51dfdfa commit a67d37f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/linuxbsd/joypad_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ void JoypadLinux::Joypad::reset() {
events.clear();
}

#ifdef UDEV_ENABLED
// This function is derived from SDL:
// https://github.com/libsdl-org/SDL/blob/main/src/core/linux/SDL_sandbox.c#L28-L45
static bool detect_sandbox() {
Expand All @@ -93,6 +94,7 @@ static bool detect_sandbox() {

return false;
}
#endif // UDEV_ENABLED

JoypadLinux::JoypadLinux(Input *in) {
#ifdef UDEV_ENABLED
Expand Down

0 comments on commit a67d37f

Please sign in to comment.