From a148964f31f19190e4e903ed6c2b7f9e85c36ff0 Mon Sep 17 00:00:00 2001 From: LUCASTUCIOUS Date: Sat, 21 Sep 2024 00:44:38 +0200 Subject: [PATCH] i'm not sure... --- Source/SkyPortal/SkyPortal.Build.cs | 1 + ThirdParty/hidapi/include/hidapi.h | 4 ++++ ThirdParty/hidapi/include/hidapi_winapi.h | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/SkyPortal/SkyPortal.Build.cs b/Source/SkyPortal/SkyPortal.Build.cs index 40a8dd2..60e8bb3 100644 --- a/Source/SkyPortal/SkyPortal.Build.cs +++ b/Source/SkyPortal/SkyPortal.Build.cs @@ -7,6 +7,7 @@ public class SkyPortal : ModuleRules { public SkyPortal(ReadOnlyTargetRules Target) : base(Target) { + bPrecompile = true; // Add the path to the hidapi include directory PublicIncludePaths.Add(Path.Combine(PluginDirectory, "ThirdParty", "hidapi", "include")); diff --git a/ThirdParty/hidapi/include/hidapi.h b/ThirdParty/hidapi/include/hidapi.h index 744ceb0..8725352 100644 --- a/ThirdParty/hidapi/include/hidapi.h +++ b/ThirdParty/hidapi/include/hidapi.h @@ -417,6 +417,10 @@ extern "C" { -1 on error. Call hid_error(dev) to get the failure reason. */ + + int HID_API_EXPORT HID_API_CALL hid_set_output_report(hid_device* device, const unsigned char* data, size_t length); + + int HID_API_EXPORT HID_API_CALL hid_send_feature_report(hid_device *dev, const unsigned char *data, size_t length); /** @brief Get a feature report from a HID device. diff --git a/ThirdParty/hidapi/include/hidapi_winapi.h b/ThirdParty/hidapi/include/hidapi_winapi.h index 43071f5..a991992 100644 --- a/ThirdParty/hidapi/include/hidapi_winapi.h +++ b/ThirdParty/hidapi/include/hidapi_winapi.h @@ -46,7 +46,7 @@ extern "C" { @ingroup API @param dev A device handle returned from hid_open(). - @param guid The device's container ID on return. + @param container_id The device's container ID on return. @returns This function returns 0 on success and -1 on error.