//
// cocos2d::CCEGLView::showCursor from 0x1005026a0 to 0x1005026e1 (65 bytes)
//
// 2 xrefs:
// > PlatformToolbox::hideCursor @ 0x1004bceaf
// > PlatformToolbox::showCursor @ 0x1004bced2
//
// 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:30 +0000
//
char __fastcall cocos2d::CCEGLView::showCursor(_BYTE *a1, char a2)
{
char result; // al
result = a2 ^ 1;
a1[116] = a2 ^ 1;
if ( a1[118] == 1 )
{
if ( a2 || !a1[117] )
{
a1[118] = 0;
return CGDisplayShowCursor(0);
}
}
else if ( !a2 && a1[117] == 1 )
{
a1[118] = 1;
return CGDisplayHideCursor(0);
}
return result;
}