mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
[Linux] Make SO wrapper usage optional.
This commit is contained in:
parent
953383328a
commit
dd068794c3
21 changed files with 259 additions and 32 deletions
|
|
@ -39,7 +39,11 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#ifdef UDEV_ENABLED
|
||||
#ifdef SOWRAP_ENABLED
|
||||
#include "libudev-so_wrap.h"
|
||||
#else
|
||||
#include <libudev.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define LONG_BITS (sizeof(long) * 8)
|
||||
|
|
@ -70,6 +74,7 @@ void JoypadLinux::Joypad::reset() {
|
|||
|
||||
JoypadLinux::JoypadLinux(Input *in) {
|
||||
#ifdef UDEV_ENABLED
|
||||
#ifdef SOWRAP_ENABLED
|
||||
#ifdef DEBUG_ENABLED
|
||||
int dylibloader_verbose = 1;
|
||||
#else
|
||||
|
|
@ -81,6 +86,7 @@ JoypadLinux::JoypadLinux(Input *in) {
|
|||
} else {
|
||||
print_verbose("JoypadLinux: udev enabled, but couldn't be loaded. Falling back to /dev/input to detect joypads.");
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
print_verbose("JoypadLinux: udev disabled, parsing /dev/input to detect joypads.");
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue