//
// getDpadSetting from 0x30cc60 to 0x30cca6 (70 bytes)
//
// 1 xrefs:
// > UILayer::refreshDpad @ 0x30dfc2
//
// 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
//
UIButtonConfig *__fastcall getDpadSetting(int a1, int a2)
{
UIButtonConfig *result; // r0
if ( a2 )
++a1;
switch ( a1 )
{
case 1:
result = &GameManager::sharedState()->m_dpad2;
break;
case 2:
result = &GameManager::sharedState()->m_dpad3;
break;
case 3:
result = &GameManager::sharedState()->m_dpad4;
break;
case 4:
result = &GameManager::sharedState()->m_dpad5;
break;
default:
result = &GameManager::sharedState()->m_dpad1;
break;
}
return result;
}