Fix build in windows with cmake

This commit is contained in:
haorui wang
2026-02-04 23:11:22 +08:00
parent b9233c74b1
commit 7f2b504a01
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -2775,6 +2775,8 @@ set(WindowsFiles
Windows/CaptureDevice.h
Windows/DinputDevice.cpp
Windows/DinputDevice.h
Windows/Hid/HidCommon.h
Windows/Hid/HidCommon.cpp
Windows/Hid/HidInputDevice.h
Windows/Hid/HidInputDevice.cpp
Windows/Hid/DualSense.h
+4 -1
View File
@@ -1,6 +1,9 @@
#include <hidsdi.h>
#include "Common/CommonWindows.h"
#include <hidsdi.h>
#include "HidCommon.h"
bool WriteReport(HANDLE handle, const u8 *data, size_t size) {
DWORD written;
bool result = WriteFile(handle, data, size, &written, NULL);