mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
mingw64: fix Windows build
This commit is contained in:
+3
-2
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user