Skip to content

Commit

Permalink
feat(mac): Remove parameter from getMousePosition
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaghettDev committed Jan 1, 2025
1 parent 3054a5c commit b4d3d84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ void mouseDownExec(EAGLView* self, SEL sel, NSEvent* event)
if (!g_selectedInput)
return mouseDownExecOIMP(self, sel, event);

cocos2d::CCPoint mousePos = BI::cocos::getMousePosition(event);
// cocos2d::CCPoint mousePos = BI::cocos::getMousePosition(event);
cocos2d::CCPoint mousePos = BI::cocos::getMousePosition();

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

0 comments on commit b4d3d84

Please sign in to comment.