diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-05-25 09:26:33 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-05-25 09:26:33 +0200 |
commit | a67d37f7cffe7f31c68e971280950d487ea99e2c (patch) | |
tree | 4d941b803bddc82a680f0d232c831ce4598c8f06 | |
parent | 4203389c1b69a34f1888213d85faeb65b97e565d (diff) | |
parent | 51dfdfab967234f0fa9939bd7158cc96a9ec3547 (diff) | |
download | redot-engine-a67d37f7cffe7f31c68e971280950d487ea99e2c.tar.gz |
Merge pull request #77458 from Riteo/late-night-preprocessing
Build `JoypadLinux` sandbox detection method only with udev
-rw-r--r-- | platform/linuxbsd/joypad_linux.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/linuxbsd/joypad_linux.cpp b/platform/linuxbsd/joypad_linux.cpp index a9725fff2e..ab79885fb4 100644 --- a/platform/linuxbsd/joypad_linux.cpp +++ b/platform/linuxbsd/joypad_linux.cpp @@ -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() { @@ -93,6 +94,7 @@ static bool detect_sandbox() { return false; } +#endif // UDEV_ENABLED JoypadLinux::JoypadLinux(Input *in) { #ifdef UDEV_ENABLED |