inputdx.h: make compatible with mingw

we need to use the mingw-provided headers, otherwise we'll run into
linker errors later on.
This commit is contained in:
rofl0r 2024-12-06 03:00:41 +00:00
parent 13bccf5738
commit c2a1296244
1 changed files with 7 additions and 0 deletions

View File

@ -26,8 +26,15 @@
#include <windows.h>
#include <mmsystem.h>
#define DIRECTINPUT_VERSION 0x0800
#ifndef __MINGW32__
#include "directx/dinput.h"
#include "directx/XInput.h"
#else
/* use the directx headers mingw ships, microsoft's dont work with gcc */
#define CINTERFACE
#include <xinput.h>
#include <dinput.h>
#endif
typedef struct
{