From 65a89d08b8d0f75ac3d3a96abe4e006769df1861 Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Wed, 14 Nov 2012 02:15:54 +0100 Subject: [PATCH] Define XUSER_MAX_COUNT for those who don't have the DirectX SDK --- Windows/XinputDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Windows/XinputDevice.cpp b/Windows/XinputDevice.cpp index 3c1ac1041f..d6294ec8fb 100644 --- a/Windows/XinputDevice.cpp +++ b/Windows/XinputDevice.cpp @@ -3,6 +3,10 @@ #include #include +#ifndef XUSER_MAX_COUNT +#define XUSER_MAX_COUNT 4 +#endif + XinputDevice::XinputDevice() { ZeroMemory( &this->prevState, sizeof(this->prevState) ); this->check_delay = 0;