//
// cocos2d::CCApplication::updateMouseControl from 0x180074870 to 0x18007493e (206 bytes)
//
// 4 xrefs:
// > ??> @ 0x18013b1c8
// > ??> @ 0x18013b1fc
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b4560
//
// 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
//
void __fastcall cocos2d::CCApplication::updateMouseControl(cocos2d::CCApplication *this)
{
struct cocos2d::CCDirector *v2; // rax
float v3; // xmm6_4
cocos2d::CCMouseDispatcher *v4; // rax
float v5; // xmm1_4
if ( !HIBYTE(cocos2d::CCEGLView::sharedOpenGLView()[1].m_fScaleY)
&& !LOBYTE(cocos2d::CCEGLView::sharedOpenGLView()[1].m_eResolutionPolicy) )
{
if ( *((float *)this + 44) != 0.0 || *((float *)this + 45) != 0.0 )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = -*((float *)this + 44);
v4 = (cocos2d::CCMouseDispatcher *)((__int64 (__fastcall *)(struct cocos2d::CCDirector *))v2->getMouseDispatcher)(v2);
cocos2d::CCMouseDispatcher::dispatchScrollMSG(v4, *((float *)this + 45), v3);
}
v5 = *((float *)this + 42);
if ( v5 != 0.0 || *((float *)this + 43) != 0.0 )
cocos2d::CCApplication::moveMouse(this, (int)v5, (int)*((float *)this + 43));
}
}