//
// cocos2d::CCEGLViewProtocol::handleRightClick from 0x1005117e0 to 0x100511847 (103 bytes)
//
// 1 xrefs:
// > -[EAGLView rightMouseDownExec:] @ 0x100745d7d
//
// 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 12:31:36 +0000
//
__int64 __fastcall cocos2d::CCEGLViewProtocol::handleRightClick(float *a1, float a2, float a3)
{
__int64 v3; // rsi
__int64 v4; // rax
__int64 v5; // rax
unsigned __int64 v7; // [rsp+8h] [rbp-18h] BYREF
float v8[4]; // [rsp+10h] [rbp-10h] BYREF
sub_100278250((float *)&v7, (float)(a2 - a1[8]) / a1[25], (float)(a3 - a1[9]) / a1[26]);
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL(v8, v3, &v7);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 208LL))(v4);
return sub_10059E250(v5, v8[0], v8[1]);
}