add CCApplication::getControllerConnected on mac

This commit is contained in:
HJfod 2023-04-16 11:12:14 +03:00
parent a5f3fe10c7
commit fa48b6aa61
2 changed files with 3 additions and 0 deletions

View file

@ -22,6 +22,7 @@ class cocos2d::CCApplication {
virtual auto openURL(char const*) = mac 0x1a4550, ios 0x10e7a4; virtual auto openURL(char const*) = mac 0x1a4550, ios 0x10e7a4;
virtual auto setAnimationInterval(double) = mac 0x1a3ee0, ios 0x10e494; virtual auto setAnimationInterval(double) = mac 0x1a3ee0, ios 0x10e494;
static auto sharedApplication() = mac 0x1a3f30; static auto sharedApplication() = mac 0x1a3f30;
bool getControllerConnected() const = mac 0x27d1b0;
// ~CCApplication() = mac 0x1a3d10, ios 0x10e384; // ~CCApplication() = mac 0x1a3d10, ios 0x10e384;
CCApplication() {} CCApplication() {}
~CCApplication() {} ~CCApplication() {}

View file

@ -91,6 +91,8 @@ public:
//Robtop modification //Robtop modification
virtual void openURL(char const* link); virtual void openURL(char const* link);
bool getControllerConnected() const;
protected: protected:
static CCApplication * sm_pSharedApplication; static CCApplication * sm_pSharedApplication;