//
// cocos2d::CCAccelerometer::setDelegate from 0x7eabd6 to 0x7eabe2 (12 bytes)
//
// 4 xrefs:
// > cocos2d::CCLayer::setAccelerometerEnabled @ 0x7d74c2
// > cocos2d::CCLayer::onEnter @ 0x7d84c8
// > cocos2d::CCLayer::onExit @ 0x7d8542
// > cocos2d::CCLayer::onEnterTransitionDidFinish @ 0x7d85aa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:00:58 +0000
//
int __fastcall cocos2d::CCAccelerometer::setDelegate(_DWORD *a1, int a2)
{
*a1 = a2;
if ( a2 )
return enableAccelerometerJNI();
else
return disableAccelerometerJNI();
}