//
// cocos2d::CCLayer::setTouchMode from 0x5cf20a to 0x5cf23c (50 bytes)
//
// 0 xrefs:
//
// 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 cocos2d::CCLayer::setTouchMode(cocos2d::CCLayer *a1, cocos2d::ccTouchesMode a2)
{
_BOOL4 m_bTouchEnabled; // r3
if ( a1->m_eTouchMode != a2 )
{
m_bTouchEnabled = a1->m_bTouchEnabled;
a1->m_eTouchMode = a2;
if ( m_bTouchEnabled )
{
a1->setTouchEnabled(a1, 0);
a1->setTouchEnabled(a1, 1);
}
}
}