Skip to content

Commit b4d3d84

Browse files
committed
feat(mac): Remove parameter from getMousePosition
1 parent 3054a5c commit b4d3d84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/macos.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ void mouseDownExec(EAGLView* self, SEL sel, NSEvent* event)
204204
if (!g_selectedInput)
205205
return mouseDownExecOIMP(self, sel, event);
206206

207-
cocos2d::CCPoint mousePos = BI::cocos::getMousePosition(event);
207+
// cocos2d::CCPoint mousePos = BI::cocos::getMousePosition(event);
208+
cocos2d::CCPoint mousePos = BI::cocos::getMousePosition();
208209

209210
// NSWindow's mouse origin is the bottom left
210211
// CCTouch's mouse origin is top left (because of course it is)

0 commit comments

Comments
 (0)