Skip to content

Commit c299f9a

Browse files
committed
fix(build): Declare SyntheticPointerDevice only on x86_64
SyntheticPointerDevice does not support arm64, add conditional check Signed-off-by: Coia Prant <[email protected]>
1 parent e8c62fc commit c299f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/windows/input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "src/logging.h"
2323
#include "src/platform/common.h"
2424

25-
#ifdef __MINGW32__
25+
#if defined(__MINGW32__) && (defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(__amd64__) || defined(_M_AMD64))
2626
DECLARE_HANDLE(HSYNTHETICPOINTERDEVICE);
2727
WINUSERAPI HSYNTHETICPOINTERDEVICE WINAPI CreateSyntheticPointerDevice(POINTER_INPUT_TYPE pointerType, ULONG maxCount, POINTER_FEEDBACK_MODE mode);
2828
WINUSERAPI BOOL WINAPI InjectSyntheticPointerInput(HSYNTHETICPOINTERDEVICE device, CONST POINTER_TYPE_INFO *pointerInfo, UINT32 count);

0 commit comments

Comments
 (0)