Open minggo opened 9 years ago
dispatchCustomEvent is done in pure script for JS: https://github.com/cocos2d/cocos2d-x/blob/v3/cocos/scripting/js-bindings/script/jsb_cocos2d.js#L1649
I think it can be done equally in Lua in the same way
Ok, I see, the reason this API have been skipped is that void *
can not be converted in auto bindings, so I suggest to bind this function manually.
https://github.com/cocos2d/cocos2d-x/pull/12788/files
PR reverted: https://github.com/cocos2d/cocos2d-x/pull/12791
Yep, there is an optional parameter that accepts void*
.
Any news?
As you can see here,
Schedule::dispatchCustomEvent()
is skipped.Is there any reason to skip this function?