mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-31 14:04:21 +00:00
add defines for udp gamepad
This commit is contained in:
parent
5c44d58ba9
commit
9fb3fe6216
@ -884,7 +884,7 @@ ifeq ($(HAVE_NETWORKING), 1)
|
||||
# Netplay
|
||||
|
||||
ifeq ($(HAVE_NETPLAY), 1)
|
||||
DEFINES += -DHAVE_NETPLAY -DHAVE_NETWORK_CMD
|
||||
DEFINES += -DHAVE_NETPLAY -DHAVE_NETWORK_CMD -DHAVE_NETWORK_GAMEPAD
|
||||
OBJ += netplay.o
|
||||
endif
|
||||
|
||||
|
@ -32,6 +32,12 @@ static const bool _network_command_supp = true;
|
||||
static const bool _network_command_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NETWORK_GAMEPAD
|
||||
static const bool _network_gamepad_supp = true;
|
||||
#else
|
||||
static const bool _network_gamepad_supp = false;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBUSB
|
||||
static const bool _libusb_supp = true;
|
||||
#else
|
||||
|
@ -156,12 +156,14 @@ if [ "$HAVE_NETWORKING" = 'yes' ]; then
|
||||
fi
|
||||
fi
|
||||
HAVE_NETWORK_CMD=yes
|
||||
HAVE_NETWORK_GAMEPAD=yes
|
||||
|
||||
[ "$HAVE_NETPLAY" != 'no' ] && HAVE_NETPLAY='yes'
|
||||
else
|
||||
echo "Warning: All networking features have been disabled."
|
||||
HAVE_NETWORK_CMD='no'
|
||||
HAVE_NETPLAY='no'
|
||||
HAVE_NETWORK_GAMEPAD='no'
|
||||
fi
|
||||
|
||||
check_lib STDIN_CMD "$CLIB" fcntl
|
||||
|
Loading…
x
Reference in New Issue
Block a user