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 c8cd425 commit 3f3f7d2Copy full SHA for 3f3f7d2
src/macos.mm
@@ -51,8 +51,8 @@ inline bool keyDown(PlatformKey key, NSEvent* event)
51
auto mousePos = [NSEvent mouseLocation];
52
53
return cocos2d::CCPoint{
54
- mousePos.x - windowFrame.origin.x,
55
- mousePos.y - windowFrame.origin.y
+ static_cast<float>(mousePos.x - windowFrame.origin.x),
+ static_cast<float>(mousePos.y - windowFrame.origin.y)
56
} * scaleFactor;
57
}
58
0 commit comments