//
// TouchControlEditLayer::globalDpad from 0xd042d0 to 0xd0434c (124 bytes)
//
// 2 xrefs:
// > TouchControlEditLayer::buildNodes @ 0xd067b0
// > ??> @ 0xaf4b0
//
// This function is hookable on this platform (idp: arm, 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 13:06:55 +0000
//
__int64 __fastcall TouchControlEditLayer::globalDpad(TouchControlEditLayer *this, int a2)
{
__int64 result; // x0
switch ( a2 )
{
case 1:
result = GameManager::sharedState(this) + 1356;
break;
case 2:
result = GameManager::sharedState(this) + 1396;
break;
case 3:
result = GameManager::sharedState(this) + 1436;
break;
case 4:
result = GameManager::sharedState(this) + 1476;
break;
default:
result = GameManager::sharedState(this) + 1316;
break;
}
return result;
}