Skip to content

Commit

Permalink
fix a skill issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaghettDev committed Dec 1, 2024
1 parent e8cff7d commit 2ca927a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,11 @@ void keyUpExec(EAGLView* self, SEL sel, NSEvent* event)
void mouseDownExec(EAGLView* self, SEL sel, NSEvent* event)
{
if (!g_selectedInput)
return mouseDOwnExecOIMP(self, self, event);
return mouseDownExecOIMP(self, sel, event);

cocos2d::CCPoint mousePos = BI::cocos::getMousePosition();
cocos2d::CCTouch touch{};
touch.setTouchInfo(0, touchPos.x, [[[event window] contentView] frame].size.height - touchPos.y);
touch.setTouchInfo(0, mousePos.x, [[[event window] contentView] frame].size.height - mousePos.y);

g_selectedInput->useUpdateBlinkPos(true);

Expand Down

0 comments on commit 2ca927a

Please sign in to comment.