krzysztofzablocki / CCNode-SFGestureRecognizers

Adding UIGestureRecognizers to cocos2d, painless.
http://twitter.com/merowing_
Other
202 stars 34 forks source link

Cocos2d-x migration #7

Closed garudaonekh closed 10 years ago

garudaonekh commented 11 years ago

Hi, great tool. any Cocos2d-x implementation of this?

And how hard it's to convert it to Cocos2d-x?

Thanks;

bagusflyer commented 11 years ago

This is also what I want to ask?

krzysztofzablocki commented 11 years ago

cocos2d-x is multiplatform and thus there is no UIGestureRecognizer concept as far as I know ?

garudaonekh commented 11 years ago

There're several implementation of UIGestureRecognizer in cocos2d-x

Ex. https://github.com/spalx/cocos2d-x-extensions

krzysztofzablocki commented 11 years ago

I think the problem would be that C++ is not as dynamic as Objective-C. This category is using runtime to inject support for native gesture recognisers into cocos2d, in C++ you wouldn't be able to do that dynamically, thus probably only way to have gesture recognisers in CCNode in cocos2d-x is to get it in normal implementation.

gitsome commented 10 years ago

How about cocos2d v3? I know layers have been done away with. Would this be compatible with v3 with little modification?

krzysztofzablocki commented 10 years ago

@gitsome added v3 in last commit

gitsome commented 10 years ago

Awesome @krzysztofzablocki ! Thank you so much. This will make my life sooo much easier!