Merge pull request #77458 from Riteo/late-night-preprocessing
Build `JoypadLinux` sandbox detection method only with udev
This commit is contained in:
@ -74,6 +74,7 @@ void JoypadLinux::Joypad::reset() {
|
|||||||
events.clear();
|
events.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef UDEV_ENABLED
|
||||||
// This function is derived from SDL:
|
// This function is derived from SDL:
|
||||||
// https://github.com/libsdl-org/SDL/blob/main/src/core/linux/SDL_sandbox.c#L28-L45
|
// https://github.com/libsdl-org/SDL/blob/main/src/core/linux/SDL_sandbox.c#L28-L45
|
||||||
static bool detect_sandbox() {
|
static bool detect_sandbox() {
|
||||||
@ -93,6 +94,7 @@ static bool detect_sandbox() {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif // UDEV_ENABLED
|
||||||
|
|
||||||
JoypadLinux::JoypadLinux(Input *in) {
|
JoypadLinux::JoypadLinux(Input *in) {
|
||||||
#ifdef UDEV_ENABLED
|
#ifdef UDEV_ENABLED
|
||||||
|
|||||||
Reference in New Issue
Block a user