// // ControllerInputNode::onButton from 0xc9637c to 0xc96404 (136 bytes) // // 3 xrefs: // > @ 0xcf310 // > ControllerInputNode::init @ 0xc968fc // > @ 0x15461c0 // // 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:05:53 +0000 // __int64 __fastcall ControllerInputNode::onButton(ControllerInputNode *this, cocos2d::CCObject *a2) { bool *v3; // x2 int v4; // w20 __int64 result; // x0 __int64 v6; // x19 unsigned __int16 v7; // w0 __int64 (__fastcall *v8)(__int64, _QWORD); // x20 unsigned int v9; // w0 v3 = (bool *)(32LL * (*(int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2)); v4 = *(_DWORD *)((char *)&unk_13FB140 + (_QWORD)v3); *((_DWORD *)this + 83) = v4; ControllerInputNode::refreshVisuals(this, (__int64)&unk_13FB140, v3); result = *((unsigned __int8 *)this + 328); if ( *((_BYTE *)this + 328) ) { result = v4 & 1; LOWORD(v4) = v4 + (v4 & 1); } v6 = *((_QWORD *)this + 40); if ( v6 ) { v7 = v4; v8 = *(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 16LL); v9 = GJKeybindManager::encodeChord(v7, 0, 0, 0); return v8(v6, v9); } return result; }