//
// GJRotationControl::create from 0x10000b7e0 to 0x10000b8b1 (209 bytes)
//
// 1 xrefs:
// > EditorUI::init @ 0x100009225
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
GJRotationControl *__fastcall GJRotationControl::create()
{
GJRotationControl *v0; // rbx
v0 = (GJRotationControl *)operator new(0x1C8u);
cocos2d::CCLayer::CCLayer(v0);
v0->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJRotationControl_vtbl *)off_1008B0F90;
v0->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1008B1410;
v0->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1008B1480;
v0->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_1008B1498;
v0->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_1008B14B8;
v0->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_1008B14D8;
sub_10028CC30(&v0->m_cursorDifference);
sub_10028CC30(&v0->m_controlPosition);
*(_QWORD *)&v0->m_startingRotation = 0;
v0->m_touchID = -1;
v0->m_delegate = nullptr;
if ( ((unsigned __int8 (__fastcall *)(GJRotationControl *))v0->init)(v0) )
{
cocos2d::CCObject::autorelease(v0);
}
else
{
((void (__fastcall *)(GJRotationControl *))v0->~GJRotationControl_0)(v0);
return nullptr;
}
return v0;
}