We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f0e933 commit c8cd425Copy full SHA for c8cd425
src/macos.mm
@@ -48,7 +48,7 @@ inline bool keyDown(PlatformKey key, NSEvent* event)
48
static_cast<float>(viewFrame.size.width),
49
static_cast<float>(viewFrame.size.height)
50
};
51
- auto mousePos = event.mouseLocation;
+ auto mousePos = [NSEvent mouseLocation];
52
53
return cocos2d::CCPoint{
54
mousePos.x - windowFrame.origin.x,
0 commit comments