Skip to content

Commit 1190d2d

Browse files
committed
misspelt CCPoint and use not deprecated masks
1 parent 04ed76b commit 1190d2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/macos.mm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ inline bool keyDown(PlatformKey key, NSEvent* event)
2424
switch (key)
2525
{
2626
case BI::PlatformKey::LEFT_CONTROL:
27-
return [event modifierFlags] & NSCommandKeyMask;
27+
return [event modifierFlags] & NSEventModifierFlagCommand;
2828
case BI::PlatformKey::LEFT_SHIFT:
29-
return [event modifierFlags] & NSShiftKeyMask;
29+
return [event modifierFlags] & NSEventModifierFlagShift;
3030
case BI::PlatformKey::LEFT_ALT:
31-
return [event modifierFlags] & NSAlternateKeyMask;
31+
return [event modifierFlags] & NSEventModifierFlagOption;
3232
}
3333

3434
return false;
@@ -208,7 +208,7 @@ void mouseDownExec(EAGLView* self, SEL sel, NSEvent* event)
208208
geode::log::debug("mouse pos is ({}, {})", m.x, m.y);
209209

210210
cocos2d::CCSize winSize = cocos2d::CCDirector::sharedDirector()->getWinSize();
211-
cocos2d::CCPoint mousePos = cocos2d::CCpoint{ m.x, m.y };
211+
cocos2d::CCPoint mousePos = cocos2d::CCPoint{ m.x, m.y };
212212

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

0 commit comments

Comments
 (0)