mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 02:43:03 +00:00
Initial xinput support, fix msvc build
This commit is contained in:
parent
4695ff9855
commit
f5454cd446
10
Makefile.win
10
Makefile.win
@ -44,7 +44,8 @@ JOBJ := conf/config_file.o \
|
||||
compat/compat.o \
|
||||
file_path.o \
|
||||
tools/input_common_joyconfig.o \
|
||||
input/dinput.o
|
||||
input/dinput.o \
|
||||
input/winxinput_joypad.o
|
||||
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
@ -63,6 +64,8 @@ HAVE_THREADS = 1
|
||||
HAVE_RGUI = 1
|
||||
DYNAMIC = 1
|
||||
|
||||
USE_WINXINPUT = 1
|
||||
|
||||
ifeq ($(SLIM),)
|
||||
HAVE_SDL = 1
|
||||
HAVE_SDL_IMAGE = 1
|
||||
@ -212,6 +215,11 @@ ifeq ($(HAVE_PYTHON), 1)
|
||||
OBJ += gfx/py_state/py_state.o
|
||||
endif
|
||||
|
||||
ifeq ($(USE_WINXINPUT), 1)
|
||||
DEFINES += -DUSE_WINXINPUT
|
||||
OBJ += input/winxinput_joypad.o
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_DINPUT), 1)
|
||||
LIBS += -ldinput8 -ldxguid -lole32
|
||||
DEFINES += -DHAVE_DINPUT
|
||||
|
@ -36,12 +36,15 @@ static const frontend_ctx_driver_t *frontend_ctx_drivers[] = {
|
||||
#if defined(IOS) || defined(OSX)
|
||||
&frontend_ctx_apple,
|
||||
#endif
|
||||
NULL // zero length array is not valid
|
||||
};
|
||||
|
||||
const frontend_ctx_driver_t *frontend_ctx_find_driver(const char *ident)
|
||||
{
|
||||
for (unsigned i = 0; i < sizeof(frontend_ctx_drivers) / sizeof(frontend_ctx_drivers[0]); i++)
|
||||
{
|
||||
if (!frontend_ctx_drivers[i]) // could be the dummy NULL
|
||||
continue;
|
||||
if (strcmp(frontend_ctx_drivers[i]->ident, ident) == 0)
|
||||
return frontend_ctx_drivers[i];
|
||||
}
|
||||
|
@ -386,6 +386,8 @@ static BOOL CALLBACK enum_axes_cb(const DIDEVICEOBJECTINSTANCE *inst, void *p)
|
||||
return DIENUM_CONTINUE;
|
||||
}
|
||||
|
||||
extern const LPCTSTR XBOX_PAD_NAMES_TO_REJECT[];
|
||||
|
||||
static BOOL CALLBACK enum_joypad_cb(const DIDEVICEINSTANCE *inst, void *p)
|
||||
{
|
||||
(void)p;
|
||||
@ -399,7 +401,28 @@ static BOOL CALLBACK enum_joypad_cb(const DIDEVICEINSTANCE *inst, void *p)
|
||||
#else
|
||||
if (FAILED(IDirectInput8_CreateDevice(g_ctx, &inst->guidInstance, pad, NULL)))
|
||||
#endif
|
||||
return DIENUM_CONTINUE;
|
||||
return DIENUM_CONTINUE;
|
||||
|
||||
#ifdef USE_WINXINPUT
|
||||
// Reject xbox 360 controllers, the xinput driver will take care of them
|
||||
DIDEVICEINSTANCE info;
|
||||
ZeroMemory(&info, sizeof(DIDEVICEINSTANCE));
|
||||
info.dwSize = sizeof(DIDEVICEINSTANCE);
|
||||
IDirectInputDevice8_GetDeviceInfo(*pad, &info);
|
||||
|
||||
unsigned test_name_index = 0;
|
||||
while(1)
|
||||
{
|
||||
if (XBOX_PAD_NAMES_TO_REJECT[test_name_index] == NULL)
|
||||
break;
|
||||
if (lstrcmpi(info.tszProductName, XBOX_PAD_NAMES_TO_REJECT[test_name_index]) == 0)
|
||||
{
|
||||
RARCH_LOG("dinput: Rejected XInput controller \"%s\"", info.tszProductName);
|
||||
return DIENUM_CONTINUE;
|
||||
}
|
||||
++test_name_index;
|
||||
}
|
||||
#endif
|
||||
|
||||
IDirectInputDevice8_SetDataFormat(*pad, &c_dfDIJoystick2);
|
||||
IDirectInputDevice8_SetCooperativeLevel(*pad, (HWND)driver.video_window,
|
||||
|
@ -41,6 +41,9 @@
|
||||
|
||||
static const rarch_joypad_driver_t *joypad_drivers[] = {
|
||||
#ifndef IS_RETROLAUNCH
|
||||
#ifdef USE_WINXINPUT
|
||||
&winxinput_joypad,
|
||||
#endif
|
||||
#ifdef HAVE_DINPUT
|
||||
&dinput_joypad,
|
||||
#endif
|
||||
|
@ -93,6 +93,7 @@ const char *input_joypad_name(const rarch_joypad_driver_t *driver, unsigned joyp
|
||||
|
||||
extern const rarch_joypad_driver_t dinput_joypad;
|
||||
extern const rarch_joypad_driver_t linuxraw_joypad;
|
||||
extern const rarch_joypad_driver_t winxinput_joypad; // Named as such to avoid confusion with xb1/360 port code
|
||||
extern const rarch_joypad_driver_t sdl_joypad;
|
||||
|
||||
|
||||
|
@ -39,6 +39,8 @@ static void sdl_joypad_destroy(void)
|
||||
memset(g_pads, 0, sizeof(g_pads));
|
||||
}
|
||||
|
||||
extern const LPCTSTR XBOX_PAD_NAMES_TO_REJECT[];
|
||||
|
||||
static bool sdl_joypad_init(void)
|
||||
{
|
||||
if (SDL_Init(SDL_INIT_JOYSTICK) < 0)
|
||||
@ -54,9 +56,32 @@ static bool sdl_joypad_init(void)
|
||||
pad->joypad = SDL_JoystickOpen(i);
|
||||
if (!pad->joypad)
|
||||
{
|
||||
RARCH_ERR("Couldn't open SDL joystick #%u.\n", i);
|
||||
goto error;
|
||||
RARCH_ERR("Couldn't open SDL joystick #%u.\n", i);
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
||||
#ifdef USE_WINXINPUT
|
||||
// Reject xbox 360 controllers, the xinput driver will take care of them.
|
||||
unsigned test_name_index = 0;
|
||||
while(1)
|
||||
{
|
||||
if (XBOX_PAD_NAMES_TO_REJECT[test_name_index] == NULL)
|
||||
break;
|
||||
if (lstrcmpi(SDL_JoystickName(i), XBOX_PAD_NAMES_TO_REJECT[test_name_index]) == 0)
|
||||
{
|
||||
RARCH_LOG("sdl joypad: Rejected XInput controller \"%s\"", SDL_JoystickName(i));
|
||||
pad->joypad = NULL; pad->num_axes = 0; pad->num_buttons = 0; pad->num_hats = 0;
|
||||
|
||||
goto continue_after_xinput_rejection;
|
||||
}
|
||||
++test_name_index;
|
||||
}
|
||||
#endif
|
||||
|
||||
continue_after_xinput_rejection:
|
||||
|
||||
//
|
||||
|
||||
RARCH_LOG("Opened Joystick: %s (#%u).\n",
|
||||
SDL_JoystickName(i), i);
|
||||
|
361
input/winxinput_joypad.c
Normal file
361
input/winxinput_joypad.c
Normal file
@ -0,0 +1,361 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2010-2013 - Hans-Kristian Arntzen
|
||||
*
|
||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||
* of the GNU General Public License as published by the Free Software Found-
|
||||
* ation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// Support 360 controllers on Windows.
|
||||
// Said controllers do show under DInput but they have limitations in this mode;
|
||||
// The triggers are combined rather than seperate and it is not possible to use
|
||||
// the guide button.
|
||||
|
||||
// Some wrappers for other controllers also simulate xinput (as it is easier to implement)
|
||||
// so this may be useful for those also.
|
||||
|
||||
// Note: if rumble is ever added (for psx and n64 cores), add rumble support to this
|
||||
// as well as dinput.
|
||||
#include "input_common.h"
|
||||
|
||||
#include "../general.h"
|
||||
#include "../boolean.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
//#include <windows.h>
|
||||
|
||||
// There is no need to require the xinput headers and libs since
|
||||
// we shall be dynamically loading them anyway. But first check that
|
||||
// it hasn't been included anyway.
|
||||
// official and mingw xinput headers have different include guards
|
||||
#if ((!_XINPUT_H_) && (!__WINE_XINPUT_H))
|
||||
|
||||
#define XINPUT_GAMEPAD_DPAD_UP 0x0001
|
||||
#define XINPUT_GAMEPAD_DPAD_DOWN 0x0002
|
||||
#define XINPUT_GAMEPAD_DPAD_LEFT 0x0004
|
||||
#define XINPUT_GAMEPAD_DPAD_RIGHT 0x0008
|
||||
#define XINPUT_GAMEPAD_START 0x0010
|
||||
#define XINPUT_GAMEPAD_BACK 0x0020
|
||||
#define XINPUT_GAMEPAD_LEFT_THUMB 0x0040
|
||||
#define XINPUT_GAMEPAD_RIGHT_THUMB 0x0080
|
||||
#define XINPUT_GAMEPAD_LEFT_SHOULDER 0x0100
|
||||
#define XINPUT_GAMEPAD_RIGHT_SHOULDER 0x0200
|
||||
#define XINPUT_GAMEPAD_A 0x1000
|
||||
#define XINPUT_GAMEPAD_B 0x2000
|
||||
#define XINPUT_GAMEPAD_X 0x4000
|
||||
#define XINPUT_GAMEPAD_Y 0x8000
|
||||
|
||||
typedef struct
|
||||
{
|
||||
WORD wButtons;
|
||||
BYTE bLeftTrigger;
|
||||
BYTE bRightTrigger;
|
||||
SHORT sThumbLX;
|
||||
SHORT sThumbLY;
|
||||
SHORT sThumbRX;
|
||||
SHORT sThumbRY;
|
||||
} XINPUT_GAMEPAD;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
DWORD dwPacketNumber;
|
||||
XINPUT_GAMEPAD Gamepad;
|
||||
} XINPUT_STATE;
|
||||
|
||||
#endif
|
||||
|
||||
// Guide constant is not officially documented
|
||||
#define XINPUT_GAMEPAD_GUIDE 0x0400
|
||||
|
||||
#ifndef ERROR_DEVICE_NOT_CONNECTED
|
||||
#define ERROR_DEVICE_NOT_CONNECTED 1167
|
||||
#endif
|
||||
|
||||
// To load xinput1_3.dll
|
||||
static HINSTANCE g_winxinput_dll;
|
||||
|
||||
// Function pointer, to be assigned with GetProcAddress
|
||||
typedef __stdcall DWORD (*XInputGetStateEx_t)(DWORD, XINPUT_STATE*);
|
||||
static XInputGetStateEx_t g_XInputGetStateEx;
|
||||
|
||||
// Guide button may or may not be available,
|
||||
// but if it is available
|
||||
static bool g_winxinput_guide_button_supported;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
XINPUT_STATE xstate;
|
||||
bool connected;
|
||||
} winxinput_joypad_state;
|
||||
|
||||
static winxinput_joypad_state g_winxinput_states[4];
|
||||
|
||||
static bool winxinput_joypad_init(void)
|
||||
{
|
||||
g_winxinput_dll = NULL;
|
||||
|
||||
// Find the correct path to load the DLL from.
|
||||
// Usually this will be from the system directory,
|
||||
// but occasionally a user may wish to use a third-party
|
||||
// wrapper DLL (such as x360ce); support these by checking
|
||||
// the working directory first.
|
||||
|
||||
// No need to check for existance as we will be checking LoadLibrary's
|
||||
// success anyway.
|
||||
TCHAR dll_path[MAX_PATH];
|
||||
strcpy(dll_path, "xinput1_3.dll");
|
||||
g_winxinput_dll = LoadLibrary(dll_path);
|
||||
if (!g_winxinput_dll)
|
||||
{
|
||||
// Loading from working dir failed, try to load from system.
|
||||
GetSystemDirectory(dll_path, sizeof(dll_path));
|
||||
strcpy(dll_path, "xinput1_3.dll");
|
||||
g_winxinput_dll = LoadLibrary(dll_path);
|
||||
|
||||
if (!g_winxinput_dll)
|
||||
{
|
||||
RARCH_ERR("Failed to init XInput, ensure DirectX and controller drivers are up to date.\n");
|
||||
return false; // DLL does not exist or is invalid
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// If we get here then an xinput DLL is correctly loaded.
|
||||
// First try to load ordinal 100 (XInputGetStateEx).
|
||||
// Cast to make C++ happy.
|
||||
g_XInputGetStateEx = (XInputGetStateEx_t) GetProcAddress(g_winxinput_dll, (LPCSTR)100);
|
||||
g_winxinput_guide_button_supported = true;
|
||||
|
||||
if (!g_XInputGetStateEx)
|
||||
{
|
||||
// no ordinal 100. (old version of x360ce perhaps). Load the ordinary XInputGetState,
|
||||
// at the cost of losing guide button support.
|
||||
g_winxinput_guide_button_supported = false;
|
||||
g_XInputGetStateEx = (XInputGetStateEx_t) GetProcAddress(g_winxinput_dll, "XInputGetState");
|
||||
if (!g_XInputGetStateEx)
|
||||
{
|
||||
RARCH_ERR("Failed to init XInput.\n");
|
||||
return false; // DLL was loaded but did not contain the correct function.
|
||||
}
|
||||
}
|
||||
|
||||
// zero out the states
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
ZeroMemory(&g_winxinput_states[i], sizeof(winxinput_joypad_state));
|
||||
|
||||
// Do a dummy poll to check which controllers are connected.
|
||||
XINPUT_STATE dummy_state;
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
{
|
||||
g_winxinput_states[i].connected = !(g_XInputGetStateEx(i, &dummy_state) == ERROR_DEVICE_NOT_CONNECTED);
|
||||
if (g_winxinput_states[i].connected)
|
||||
RARCH_LOG("Found XInput controller, player #%u\n", i);
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool winxinput_joypad_query_pad(unsigned pad)
|
||||
{
|
||||
if (pad >= 4)
|
||||
return false;
|
||||
else
|
||||
return g_winxinput_states[pad].connected;
|
||||
}
|
||||
|
||||
static void winxinput_joypad_destroy(void)
|
||||
{
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
ZeroMemory(&g_winxinput_states[i], sizeof(winxinput_joypad_state));
|
||||
|
||||
FreeLibrary(g_winxinput_dll);
|
||||
g_winxinput_dll = NULL;
|
||||
g_XInputGetStateEx = NULL;
|
||||
}
|
||||
|
||||
// Buttons are provided by XInput as bits of a uint16.
|
||||
// Map from button index (0..10) to mask to AND against.
|
||||
// dpad is handled seperately.
|
||||
// Order:
|
||||
// a, b, x, y, leftbump, rightbump, back, start, leftstick, rightstick, guide.
|
||||
static const WORD button_index_to_bitmap_code[] = {
|
||||
0x1000, 0x2000, 0x4000, 0x8000, 0x0100, 0x0200, 0x0020, 0x0010,
|
||||
0x0040, 0x0080, 0x0400
|
||||
};
|
||||
|
||||
static bool winxinput_joypad_button (unsigned port_num, uint16_t joykey)
|
||||
{
|
||||
if (joykey == NO_BTN)
|
||||
return false;
|
||||
|
||||
if (!(g_winxinput_states[port_num].connected))
|
||||
return false;
|
||||
|
||||
|
||||
|
||||
uint16_t btn_word = g_winxinput_states[port_num].xstate.Gamepad.wButtons;
|
||||
|
||||
|
||||
if (GET_HAT_DIR(joykey))
|
||||
{
|
||||
|
||||
switch (GET_HAT_DIR(joykey))
|
||||
{
|
||||
case HAT_UP_MASK: return btn_word & XINPUT_GAMEPAD_DPAD_UP;
|
||||
case HAT_DOWN_MASK: return btn_word & XINPUT_GAMEPAD_DPAD_DOWN;
|
||||
case HAT_LEFT_MASK: return btn_word & XINPUT_GAMEPAD_DPAD_LEFT;
|
||||
case HAT_RIGHT_MASK: return btn_word & XINPUT_GAMEPAD_DPAD_RIGHT;
|
||||
}
|
||||
|
||||
return false; // hat requested and no hat button down
|
||||
}
|
||||
else
|
||||
{
|
||||
// non-hat button
|
||||
unsigned num_buttons = g_winxinput_guide_button_supported ? 11 : 10;
|
||||
|
||||
if (joykey >= num_buttons)
|
||||
return false;
|
||||
else
|
||||
return btn_word & button_index_to_bitmap_code[joykey];
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
//#include <stdio.h>
|
||||
static int16_t winxinput_joypad_axis (unsigned port_num, uint32_t joyaxis)
|
||||
{
|
||||
//printf("Requested axis: %u\n", joyaxis);
|
||||
if (joyaxis == AXIS_NONE)
|
||||
return 0;
|
||||
|
||||
if (!(g_winxinput_states[port_num].connected))
|
||||
return 0;
|
||||
|
||||
/*switch (joyaxis)
|
||||
{
|
||||
case 0: return(g_winxinput_states[port_num].xstate.Gamepad.sThumbLX);
|
||||
case 1: return (g_winxinput_states[port_num].xstate.Gamepad.sThumbLX);
|
||||
case 2: return 0;
|
||||
case 3: return 0; //do axes now
|
||||
case 4: return 0;
|
||||
case 5: return 0;
|
||||
default: return 0;
|
||||
}*/
|
||||
|
||||
|
||||
int16_t val = 0;
|
||||
int axis = -1;
|
||||
|
||||
bool is_neg = false;
|
||||
bool is_pos = false;
|
||||
|
||||
if (AXIS_NEG_GET(joyaxis) <= 3)
|
||||
{
|
||||
axis = AXIS_NEG_GET(joyaxis);
|
||||
is_neg = true;
|
||||
}
|
||||
else if (AXIS_POS_GET(joyaxis) <= 5)
|
||||
{
|
||||
axis = AXIS_POS_GET(joyaxis);
|
||||
is_pos = true;
|
||||
}
|
||||
|
||||
XINPUT_GAMEPAD* pad = &(g_winxinput_states[port_num].xstate.Gamepad);
|
||||
switch (axis)
|
||||
{
|
||||
case 0: val = pad->sThumbLX; break;
|
||||
case 1: val = pad->sThumbLY; break;
|
||||
case 2: val = pad->sThumbRX; break;
|
||||
case 3: val = pad->sThumbRY; break;
|
||||
|
||||
case 4: val = pad->bLeftTrigger * 32767 / 255; break;
|
||||
case 5: val = pad->bRightTrigger * 32767 / 255; break;
|
||||
}
|
||||
|
||||
if (is_neg && val > 0)
|
||||
val = 0;
|
||||
else if (is_pos && val < 0)
|
||||
val = 0;
|
||||
|
||||
return val;
|
||||
|
||||
}
|
||||
|
||||
static void winxinput_joypad_poll(void)
|
||||
{
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
if (g_XInputGetStateEx(i, &(g_winxinput_states[i].xstate)) == ERROR_DEVICE_NOT_CONNECTED)
|
||||
g_winxinput_states[i].connected = false;
|
||||
}
|
||||
|
||||
static const char* const XBOX_CONTROLLER_NAMES[4] =
|
||||
{
|
||||
"Xbox 360 Controller (Player 1)",
|
||||
"Xbox 360 Controller (Player 2)",
|
||||
"Xbox 360 Controller (Player 3)",
|
||||
"Xbox 360 Controller (Player 4)"
|
||||
};
|
||||
|
||||
const char* winxinput_joypad_name (unsigned pad)
|
||||
{
|
||||
if (pad > 3)
|
||||
return NULL;
|
||||
else
|
||||
return XBOX_CONTROLLER_NAMES[pad];
|
||||
}
|
||||
|
||||
|
||||
const rarch_joypad_driver_t winxinput_joypad = {
|
||||
winxinput_joypad_init,
|
||||
winxinput_joypad_query_pad,
|
||||
winxinput_joypad_destroy,
|
||||
winxinput_joypad_button,
|
||||
winxinput_joypad_axis,
|
||||
winxinput_joypad_poll,
|
||||
winxinput_joypad_name,
|
||||
"winxinput",
|
||||
};
|
||||
|
||||
// A list of names for other (dinput) drivers to reject.
|
||||
const LPCTSTR XBOX_PAD_NAMES_TO_REJECT[] =
|
||||
{
|
||||
"Controller (Gamepad for Xbox 360)",
|
||||
"Controller (XBOX 360 For Windows)",
|
||||
"Controller (Xbox 360 Wireless Receiver for Windows)",
|
||||
"Controller (Xbox wireless receiver for windows)",
|
||||
"XBOX 360 For Windows (Controller)",
|
||||
"Xbox 360 Wireless Receiver",
|
||||
"Xbox Receiver for Windows (Wireless Controller)",
|
||||
"Xbox wireless receiver for windows (Controller)",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
typedef struct rarch_joypad_driver
|
||||
{
|
||||
bool (*init)(void);
|
||||
bool (*query_pad)(unsigned);
|
||||
void (*destroy)(void);
|
||||
bool (*button)(unsigned, uint16_t);
|
||||
int16_t (*axis)(unsigned, uint32_t);
|
||||
void (*poll)(void);
|
||||
const char *(*name)(unsigned);
|
||||
|
||||
const char *ident;
|
||||
} rarch_joypad_driver_t;
|
||||
|
||||
*/
|
@ -88,7 +88,7 @@
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;HAVE_WIN32_D3D9;HAVE_CG;HAVE_GLSL;HAVE_FBO;HAVE_ZLIB;WANT_MINIZ;_DEBUG;_WINDOWS;%(PreprocessorDefinitions);HAVE_SCREENSHOTS;HAVE_BSV_MOVIE;HAVE_DINPUT;HAVE_XAUDIO;HAVE_DSOUND;HAVE_OPENGL;HAVE_DYLIB;HAVE_NETPLAY;HAVE_NETWORK_CMD;HAVE_COMMAND;HAVE_STDIN_CMD;HAVE_THREADS;HAVE_DYNAMIC;_CRT_SECURE_NO_WARNINGS;__SSE__;__i686__;HAVE_OVERLAY;HAVE_RGUI;HAVE_GL_SYNC</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;HAVE_WIN32_D3D9;HAVE_CG;HAVE_GLSL;HAVE_FBO;HAVE_ZLIB;WANT_MINIZ;_DEBUG;_WINDOWS;%(PreprocessorDefinitions);HAVE_SCREENSHOTS;HAVE_BSV_MOVIE;HAVE_DINPUT;USE_WINXINPUT;HAVE_XAUDIO;HAVE_DSOUND;HAVE_OPENGL;HAVE_DYLIB;HAVE_NETPLAY;HAVE_NETWORK_CMD;HAVE_COMMAND;HAVE_STDIN_CMD;HAVE_THREADS;HAVE_DYNAMIC;_CRT_SECURE_NO_WARNINGS;__SSE__;__i686__;HAVE_OVERLAY;HAVE_RGUI;HAVE_GL_SYNC</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(MSBuildProjectDirectory);$(MSBuildProjectDirectory)\..\..\;$(CG_INC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<CompileAs>CompileAsCpp</CompileAs>
|
||||
@ -108,7 +108,7 @@
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;HAVE_WIN32_D3D9;HAVE_CG;HAVE_GLSL;HAVE_FBO;HAVE_ZLIB;WANT_MINIZ;_DEBUG;_WINDOWS;%(PreprocessorDefinitions);HAVE_SCREENSHOTS;HAVE_BSV_MOVIE;HAVE_DINPUT;HAVE_XAUDIO;HAVE_DSOUND;HAVE_OPENGL;HAVE_DYLIB;HAVE_NETPLAY;HAVE_NETWORK_CMD;HAVE_COMMAND;HAVE_STDIN_CMD;HAVE_THREADS;HAVE_DYNAMIC;_CRT_SECURE_NO_WARNINGS;__SSE__;__SSE2__;__x86_64__;HAVE_OVERLAY;HAVE_RGUI;HAVE_GL_SYNC</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;HAVE_WIN32_D3D9;HAVE_CG;HAVE_GLSL;HAVE_FBO;HAVE_ZLIB;WANT_MINIZ;_DEBUG;_WINDOWS;%(PreprocessorDefinitions);HAVE_SCREENSHOTS;HAVE_BSV_MOVIE;HAVE_DINPUT;USE_WINXINPUT;HAVE_XAUDIO;HAVE_DSOUND;HAVE_OPENGL;HAVE_DYLIB;HAVE_NETPLAY;HAVE_NETWORK_CMD;HAVE_COMMAND;HAVE_STDIN_CMD;HAVE_THREADS;HAVE_DYNAMIC;_CRT_SECURE_NO_WARNINGS;__SSE__;__SSE2__;__x86_64__;HAVE_OVERLAY;HAVE_RGUI;HAVE_GL_SYNC</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(MSBuildProjectDirectory);$(MSBuildProjectDirectory)\..\..\;$(CG_INC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||
<CompileAs>CompileAsCpp</CompileAs>
|
||||
@ -130,7 +130,7 @@
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;HAVE_WIN32_D3D9;HAVE_CG;HAVE_GLSL;HAVE_FBO;HAVE_ZLIB;WANT_MINIZ;NDEBUG;_WINDOWS;%(PreprocessorDefinitions);HAVE_SCREENSHOTS;HAVE_BSV_MOVIE;HAVE_DINPUT;HAVE_XAUDIO;HAVE_DSOUND;HAVE_OPENGL;HAVE_DYLIB;HAVE_NETPLAY;HAVE_NETWORK_CMD;HAVE_COMMAND;HAVE_STDIN_CMD;HAVE_THREADS;HAVE_DYNAMIC;_CRT_SECURE_NO_WARNINGS;__SSE__;__i686__;HAVE_OVERLAY;HAVE_RGUI;HAVE_GL_SYNC</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;HAVE_WIN32_D3D9;HAVE_CG;HAVE_GLSL;HAVE_FBO;HAVE_ZLIB;WANT_MINIZ;NDEBUG;_WINDOWS;%(PreprocessorDefinitions);HAVE_SCREENSHOTS;HAVE_BSV_MOVIE;HAVE_DINPUT;USE_WINXINPUT;HAVE_XAUDIO;HAVE_DSOUND;HAVE_OPENGL;HAVE_DYLIB;HAVE_NETPLAY;HAVE_NETWORK_CMD;HAVE_COMMAND;HAVE_STDIN_CMD;HAVE_THREADS;HAVE_DYNAMIC;_CRT_SECURE_NO_WARNINGS;__SSE__;__i686__;HAVE_OVERLAY;HAVE_RGUI;HAVE_GL_SYNC</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(MSBuildProjectDirectory);$(MSBuildProjectDirectory)\..\..\;$(CG_INC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<CompileAs>CompileAsCpp</CompileAs>
|
||||
@ -154,7 +154,7 @@
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;HAVE_WIN32_D3D9;HAVE_CG;HAVE_GLSL;HAVE_FBO;NDEBUG;_WINDOWS;%(PreprocessorDefinitions);HAVE_SCREENSHOTS;HAVE_BSV_MOVIE;HAVE_DINPUT;HAVE_XAUDIO;HAVE_DSOUND;HAVE_OPENGL;HAVE_DYLIB;HAVE_NETPLAY;HAVE_NETWORK_CMD;HAVE_COMMAND;HAVE_STDIN_CMD;HAVE_THREADS;HAVE_DYNAMIC;HAVE_ZLIB;WANT_MINIZ;_CRT_SECURE_NO_WARNINGS;__SSE__;__SSE2__;__x86_64__;HAVE_OVERLAY;HAVE_RGUI;HAVE_GL_SYNC</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>WIN32;HAVE_WIN32_D3D9;HAVE_CG;HAVE_GLSL;HAVE_FBO;NDEBUG;_WINDOWS;%(PreprocessorDefinitions);HAVE_SCREENSHOTS;HAVE_BSV_MOVIE;HAVE_DINPUT;USE_WINXINPUT;HAVE_XAUDIO;HAVE_DSOUND;HAVE_OPENGL;HAVE_DYLIB;HAVE_NETPLAY;HAVE_NETWORK_CMD;HAVE_COMMAND;HAVE_STDIN_CMD;HAVE_THREADS;HAVE_DYNAMIC;HAVE_ZLIB;WANT_MINIZ;_CRT_SECURE_NO_WARNINGS;__SSE__;__SSE2__;__x86_64__;HAVE_OVERLAY;HAVE_RGUI;HAVE_GL_SYNC</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(MSBuildProjectDirectory);$(MSBuildProjectDirectory)\..\..\;$(CG_INC_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<CompileAs>CompileAsCpp</CompileAs>
|
||||
@ -250,6 +250,8 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\input\dinput.c">
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\input\winxinput_joypad.c">
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\input\input_common.c">
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\message.c">
|
||||
|
Loading…
x
Reference in New Issue
Block a user