Skip to content

Commit 0309947

Browse files
committed
CCMouseDispatcher bindings
1 parent 2661b4d commit 0309947

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

bindings/2.2074/Cocos2d.bro

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,11 +2534,13 @@ class cocos2d::CCLayerRGBA : cocos2d::CCLayer, cocos2d::CCRGBAProtocol {
25342534
class cocos2d::CCMouseDispatcher : cocos2d::CCObject {
25352535
// CCMouseDispatcher(cocos2d::CCMouseDispatcher const&);
25362536
// CCMouseDispatcher();
2537-
void addDelegate(cocos2d::CCMouseDelegate*);
2537+
void addDelegate(cocos2d::CCMouseDelegate*) = m1 0x4b0c20, imac 0x55a410, ios 0x2fe4e0;
25382538
bool dispatchScrollMSG(float, float) = imac 0x55a490, m1 0x4b0cb4;
2539-
void forceAddDelegate(cocos2d::CCMouseDelegate*);
2540-
void forceRemoveDelegate(cocos2d::CCMouseDelegate*);
2541-
void removeDelegate(cocos2d::CCMouseDelegate*);
2539+
void forceAddDelegate(cocos2d::CCMouseDelegate*) = m1 0x4b0c78, imac 0x55a460, ios inline {
2540+
if (auto handler = CCMouseHandler::handlerWithDelegate(p0)) m_pMouseHandlers->addObject(handler);
2541+
}
2542+
void forceRemoveDelegate(cocos2d::CCMouseDelegate*) = m1 0x4b0b8c, imac 0x55a380, ios 0x2fe44c;
2543+
void removeDelegate(cocos2d::CCMouseDelegate*) = m1 0x4b0ad4, imac 0x55a2e0, ios 0x2fe404;
25422544
}
25432545

25442546
[[link(win, android)]]

0 commit comments

Comments
 (0)