mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-25 06:18:40 +00:00
SDL_rawinputjoystick.c: fixed a type redefinition error
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
|
||||
#ifdef SDL_JOYSTICK_RAWINPUT_WGI
|
||||
#include "../../core/windows/SDL_windows.h"
|
||||
typedef struct WindowsGamingInputGamepadState WindowsGamingInputGamepadState;
|
||||
struct WindowsGamingInputGamepadState;
|
||||
#define GamepadButtons_GUIDE 0x40000000
|
||||
#define COBJMACROS
|
||||
#include "windows.gaming.input.h"
|
||||
@@ -158,7 +158,7 @@ struct joystick_hwdata
|
||||
Uint8 wgi_correlation_id;
|
||||
Uint8 wgi_correlation_count;
|
||||
Uint8 wgi_uncorrelate_count;
|
||||
WindowsGamingInputGamepadState *wgi_slot;
|
||||
struct WindowsGamingInputGamepadState *wgi_slot;
|
||||
struct __x_ABI_CWindows_CGaming_CInput_CGamepadVibration vibration;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -611,7 +611,7 @@ static bool WGI_JoystickInit(void)
|
||||
* As a workaround, we will keep a reference to the MTA to prevent COM from unloading DLLs later.
|
||||
* See https://github.com/libsdl-org/SDL/issues/5552 for more details.
|
||||
*/
|
||||
static HANDLE cookie = NULL; // CO_MTA_USAGE_COOKIE*
|
||||
static HANDLE cookie = NULL; // CO_MTA_USAGE_COOKIE
|
||||
if (!cookie) {
|
||||
hr = wgi.CoIncrementMTAUsage(&cookie);
|
||||
if (FAILED(hr)) {
|
||||
|
||||
Reference in New Issue
Block a user