// // KeybindCapturePopup::keyDown from 0x79b316 to 0x79b3f6 (224 bytes) // // 1 xrefs: // > `non-virtual thunk to'KeybindCapturePopup::keyDown @ 0x79b3fa // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:59:49 +0000 // int __fastcall KeybindCapturePopup::keyDown(int result, int a2) { int v2; // r4 unsigned __int16 v3; // r5 int v4; // r0 unsigned __int8 *v5; // r0 int v6; // r7 int v7; // r0 unsigned __int8 *v8; // r0 int v9; // r6 int v10; // r0 int v11; // r0 GJKeybindManager *v12; // r0 int v13; // r1 GJKeybindManager *v14; // r5 ControllerInputNode *v15; // r0 int v16; // r1 CCMenuItemToggler *v17; // r0 v2 = result; v3 = a2; if ( a2 == 27 ) return (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)result + 684))(result, 0); if ( a2 > 27 ) { if ( (unsigned int)(a2 - 160) <= 3 ) return result; } else if ( (unsigned int)(a2 - 16) <= 2 ) { return result; } v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)result); v5 = (unsigned __int8 *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 96))(v4); v6 = v5[89]; v7 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v5); v8 = (unsigned __int8 *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 96))(v7); v9 = v8[90]; v10 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v8); v11 = (*(int (__fastcall **)(int))(*(_DWORD *)v10 + 96))(v10); v12 = (GJKeybindManager *)GJKeybindManager::encodeChord(v3, v6, v9, *(unsigned __int8 *)(v11 + 88)); v14 = v12; if ( !*(_BYTE *)(v2 + 739) || (result = GJKeybindManager::isControllerChord(v12, v13), *(unsigned __int8 *)(v2 + 738) == result) ) { if ( *(_BYTE *)(v2 + 737) && v14 == *(GJKeybindManager **)(v2 + 732) ) { return (int)KeybindCapturePopup::onSet((_DWORD *)v2, nullptr); } else { v15 = *(ControllerInputNode **)(v2 + 748); *(_DWORD *)(v2 + 732) = v14; *(_BYTE *)(v2 + 737) = 0; if ( v15 ) { ControllerInputNode::setController2(v15, !((unsigned __int8)v14 & 1)); if ( ((unsigned __int8)v14 & 1) != 0 ) v16 = (unsigned __int16)v14; else v16 = (unsigned __int16)v14 - 1; ControllerInputNode::setActiveKey(*(ControllerInputNode **)(v2 + 748), v16); v17 = *(CCMenuItemToggler **)(v2 + 752); if ( v17 ) CCMenuItemToggler::toggle(v17, !((unsigned __int8)v14 & 1)); } return KeybindCapturePopup::updateChordDisplay((KeybindCapturePopup *)v2); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source