mingw64: fix Windows build

This commit is contained in:
oltolm
2025-07-09 23:37:36 +02:00
parent af883e8059
commit 43b7e5ee29
2 changed files with 8 additions and 7 deletions
+3 -2
View File
@@ -2672,9 +2672,10 @@ set(WindowsFiles
Windows/CaptureDevice.h
Windows/DinputDevice.cpp
Windows/DinputDevice.h
Windows/HidInputDevice.h
Windows/HidInputDevice.cpp
Windows/EmuThread.cpp
Windows/EmuThread.h
Windows/GeDebugger/GeDebugger.cpp
Windows/GPU/D3D11Context.cpp
Windows/GPU/D3D11Context.h
Windows/GPU/WindowsGLContext.cpp
@@ -2726,7 +2727,7 @@ endif()
list(APPEND LinkCommon ${CoreLibName} ${CMAKE_THREAD_LIBS_INIT})
if(WIN32)
list(APPEND LinkCommon kernel32 user32 gdi32 shell32 comctl32 dsound xinput winmm dinput8 ole32 winspool ksuser dwmapi mf uxtheme mfplat mfreadwrite mfuuid shlwapi)
list(APPEND LinkCommon kernel32 user32 gdi32 shell32 comctl32 dsound xinput winmm dinput8 ole32 winspool ksuser dwmapi mf uxtheme mfplat mfreadwrite mfuuid shlwapi setupapi hid)
#setup_target_project(${TargetBin} Windows)
list(APPEND NativeAppSource ${WindowsFiles})
endif()
+5 -5
View File
@@ -2,23 +2,23 @@
#pragma once
#include "Input/InputState.h"
#include "Windows/InputDevice.h"
#include <set>
#include <windows.h>
enum class PSSubType {
DS4,
DS5
};
enum InputDeviceID;
// Supports a few specific HID input devices, namely DualShock and DualSense.
// More may be added later. Just picks the first one available, for now.
class HidInputDevice : public InputDevice {
public:
void Init();
int UpdateState();
void Shutdown();
void Init() override;
int UpdateState() override;
void Shutdown() override;
static void AddSupportedDevices(std::set<u32> *deviceVIDPIDs);
private: