diff --git a/bindings/Cocos2d.bro b/bindings/Cocos2d.bro index 82e8f2f5..41bed63d 100644 --- a/bindings/Cocos2d.bro +++ b/bindings/Cocos2d.bro @@ -22,6 +22,7 @@ class cocos2d::CCApplication { virtual auto openURL(char const*) = mac 0x1a4550, ios 0x10e7a4; virtual auto setAnimationInterval(double) = mac 0x1a3ee0, ios 0x10e494; static auto sharedApplication() = mac 0x1a3f30; + bool getControllerConnected() const = mac 0x27d1b0; // ~CCApplication() = mac 0x1a3d10, ios 0x10e384; CCApplication() {} ~CCApplication() {} diff --git a/loader/include/Geode/cocos/platform/mac/CCApplication.h b/loader/include/Geode/cocos/platform/mac/CCApplication.h index 79c3fc88..49137bf0 100644 --- a/loader/include/Geode/cocos/platform/mac/CCApplication.h +++ b/loader/include/Geode/cocos/platform/mac/CCApplication.h @@ -91,6 +91,8 @@ public: //Robtop modification virtual void openURL(char const* link); + + bool getControllerConnected() const; protected: static CCApplication * sm_pSharedApplication;