Skip to content

Commit

Permalink
Fix building failing with SDKs missing SyntheticPointer functions
Browse files Browse the repository at this point in the history
  • Loading branch information
elvissteinjr committed Nov 19, 2024
1 parent 5a39d3f commit 41c783e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DesktopPlus/InputSimulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 41c783e

Please sign in to comment.