From 9fb3fe62165d58d089100aa43aab35ee9e72b4b8 Mon Sep 17 00:00:00 2001 From: radius Date: Wed, 25 Nov 2015 12:53:19 -0500 Subject: [PATCH] add defines for udp gamepad --- Makefile.common | 2 +- config.features.h | 6 ++++++ qb/config.libs.sh | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 057af9259d..ceb21ff587 100644 --- a/Makefile.common +++ b/Makefile.common @@ -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 diff --git a/config.features.h b/config.features.h index 4596c480b2..58f5b891bd 100644 --- a/config.features.h +++ b/config.features.h @@ -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 diff --git a/qb/config.libs.sh b/qb/config.libs.sh index bb802c6b9b..2ad68a3b97 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -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