From 13e65ec3f31e17b065a4dbfd9c96db79853b1670 Mon Sep 17 00:00:00 2001 From: SpaghettDev <37266659+SpaghettDev@users.noreply.github.com> Date: Sun, 1 Dec 2024 02:15:53 -0500 Subject: [PATCH] wrong macro argument used --- src/macos.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macos.mm b/src/macos.mm index 1a38ce9..400a6f5 100644 --- a/src/macos.mm +++ b/src/macos.mm @@ -39,7 +39,7 @@ inline bool keyDown(PlatformKey key, NSEvent* event) #define HOOK_OBJC_METHOD(klass, type, cleanFuncName, funcName) \ auto cleanFuncName ## Method = class_getInstanceMethod(klass, @selector(funcName)); \ cleanFuncName ## OIMP = reinterpret_cast(method_getImplementation(cleanFuncName ## Method)); \ - method_setImplementation(cleanFuncName ## Method, (type)&funcName); + method_setImplementation(cleanFuncName ## Method, (type)&cleanFuncName); using KeyEventType = void(*)(EAGLView*, SEL, NSEvent*);