//
// cocos2d::CCApplication::updateMouseControl from 0x180077600 to 0x180077720 (288 bytes)
//
// 4 xrefs:
// > ??> @ 0x180144590
// > ??> @ 0x1801445ec
// > ??> @ 0x18014cf68
// > ??> @ 0x1801be8f0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:21:59 +0000
//
void __fastcall cocos2d::CCApplication::updateMouseControl(cocos2d::CCApplication *this)
{
struct cocos2d::CCDirector *v2; // rax
float *v3; // rdi
struct cocos2d::CCDirector *v4; // rax
float v5; // xmm7_4
float v6; // xmm6_4
cocos2d::CCMouseDispatcher *v7; // rax
float v8; // xmm1_4
float *v9; // rax
if ( *((_BYTE *)cocos2d::CCEGLView::sharedOpenGLView() + 235) )
return;
if ( *((_BYTE *)cocos2d::CCEGLView::sharedOpenGLView() + 236) )
return;
v2 = cocos2d::CCDirector::sharedDirector();
if ( *(_BYTE *)((*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 176LL))(v2) + 158) )
return;
if ( *((float *)this + 44) != 0.0 )
{
v3 = (float *)((char *)this + 180);
LABEL_8:
v4 = cocos2d::CCDirector::sharedDirector();
v5 = -*((float *)this + 44);
v6 = *v3;
v7 = (cocos2d::CCMouseDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v4 + 192LL))(v4);
cocos2d::CCMouseDispatcher::dispatchScrollMSG(v7, v6, v5);
goto LABEL_9;
}
v3 = (float *)((char *)this + 180);
if ( *((float *)this + 45) != 0.0 )
goto LABEL_8;
LABEL_9:
v8 = *((float *)this + 42);
if ( v8 == 0.0 )
{
v9 = (float *)((char *)this + 172);
if ( *((float *)this + 43) == 0.0 )
return;
}
else
{
v9 = (float *)((char *)this + 172);
}
cocos2d::CCApplication::moveMouse(this, (int)v8, (int)*v9);
}