From 41c783e5fd6df50e90345e24c4c739c5dfc43afa Mon Sep 17 00:00:00 2001 From: elvissteinjr Date: Tue, 19 Nov 2024 03:01:10 +0100 Subject: [PATCH] Fix building failing with SDKs missing SyntheticPointer functions --- src/DesktopPlus/InputSimulator.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/DesktopPlus/InputSimulator.h b/src/DesktopPlus/InputSimulator.h index 514233c..27a9a5c 100644 --- a/src/DesktopPlus/InputSimulator.h +++ b/src/DesktopPlus/InputSimulator.h @@ -14,6 +14,9 @@ enum IPCKeyboardKeystateFlags : unsigned char; //SyntheticPointer functions are loaded manually to not require OS support to run the application (Windows 10 1809+ should have them though) typedef HANDLE HSYNTHETICPOINTERDEVICE; +#ifndef NTDDI_WIN10_RS5 + typedef enum { POINTER_FEEDBACK_DEFAULT = 1, POINTER_FEEDBACK_INDIRECT = 2, POINTER_FEEDBACK_NONE = 3 } POINTER_FEEDBACK_MODE; +#endif typedef HSYNTHETICPOINTERDEVICE (WINAPI* fn_CreateSyntheticPointerDevice) (_In_ POINTER_INPUT_TYPE pointerType, _In_ ULONG maxCount, _In_ POINTER_FEEDBACK_MODE mode); typedef BOOL (WINAPI* fn_InjectSyntheticPointerInput) (_In_ HSYNTHETICPOINTERDEVICE device, _In_reads_(count) CONST POINTER_TYPE_INFO* pointerInfo, _In_ UINT32 count);