add defines for udp gamepad

This commit is contained in:
radius 2015-11-25 12:53:19 -05:00
parent 5c44d58ba9
commit 9fb3fe6216
3 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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