// // VirtualKeyboardNode::buildKeys from 0x7a534c to 0x7a559c (592 bytes) // // 1 xrefs: // > VirtualKeyboardNode::init @ 0x7a55d8 // // 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:57 +0000 // char *__fastcall VirtualKeyboardNode::buildKeys(VirtualKeyboardNode *this) { int v1; // r4 float v3; // s14 int v4; // r3 float *v5; // r2 float v6; // s15 float v7; // s12 int v8; // r2 float v9; // s15 void (__fastcall *v10)(VirtualKeyboardNode *, _DWORD *); // r7 float v11; // s16 int (__fastcall *v12)(VirtualKeyboardNode *, _DWORD *); // r7 cocos2d::CCMenu *v13; // r0 int v14; // r0 cocos2d::CCDirector *v15; // r0 int v16; // r0 cocos2d::CCTouchDispatcher *v17; // r0 cocos2d::CCDirector *isUsingForcePrio; // r0 int v19; // r4 void (__fastcall *v20)(int, int); // r7 int v21; // r0 int v22; // r0 int v23; // r7 char *v24; // r11 float v25; // s18 _DWORD *v26; // r4 ButtonSprite *v27; // r0 ButtonSprite *v28; // r10 int v29; // r8 _DWORD *v30; // r3 float v31; // r1 int v32; // r2 _DWORD *v33; // r2 _DWORD *v34; // r3 _DWORD *v35; // r0 int v36; // r1 int v37; // r2 char *v39; // [sp+10h] [bp-24h] void (__fastcall *v40)(int, _DWORD *); // [sp+14h] [bp-20h] _DWORD *v41; // [sp+14h] [bp-20h] _DWORD v42[2]; // [sp+1Ch] [bp-18h] BYREF _DWORD v43[2]; // [sp+24h] [bp-10h] BYREF v1 = 0; v3 = 0.0; v4 = 0; do { v5 = (float *)((char *)&unk_C74DB8 + v1); v1 += 24; v6 = v5[3]; v7 = v5[4]; v8 = *((_DWORD *)v5 + 2); v9 = (float)(v6 + v7) * 28.0; if ( v9 > v3 ) v3 = v9; if ( v4 < v8 ) v4 = v8; } while ( v1 != 1056 ); v10 = *(void (__fastcall **)(VirtualKeyboardNode *, _DWORD *))(*(_DWORD *)this + 160); v11 = (float)(v4 + 1) * 28.0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v43, v3, v11); v10(this, v43); v12 = *(int (__fastcall **)(VirtualKeyboardNode *, _DWORD *))(*(_DWORD *)this + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 0.5, 0.5); v13 = (cocos2d::CCMenu *)v12(this, v43); v14 = cocos2d::CCMenu::create(v13); *((_DWORD *)this + 67) = v14; (*(void (__fastcall **)(int, void *))(*(_DWORD *)v14 + 92))(v14, &unk_D2E76C); v15 = (cocos2d::CCDirector *)(*(int (__fastcall **)(VirtualKeyboardNode *, _DWORD))(*(_DWORD *)this + 228))( this, *((_DWORD *)this + 67)); v16 = cocos2d::CCDirector::sharedDirector(v15); v17 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v16 + 80))(v16); isUsingForcePrio = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::isUsingForcePrio(v17); if ( isUsingForcePrio ) { v19 = *((_DWORD *)this + 67); v20 = *(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 512); v21 = cocos2d::CCDirector::sharedDirector(isUsingForcePrio); v22 = (*(int (__fastcall **)(int))(*(_DWORD *)v21 + 80))(v21); v20(v19, *(_DWORD *)(v22 + 100) - 1); } v23 = 0; v24 = (char *)&unk_C74DB8; v39 = "bigFont.fnt"; do { v25 = *((float *)v24 + 4); v26 = v42; v27 = ButtonSprite::create( *((ButtonSprite **)v24 + 1), (const char *)(int)(float)((float)(v25 * 28.0) - 3.0), (int)(float)((float)(v25 * 28.0) - 3.0), 0.55, 1, v39, "GJ_button_04.png", (const char *)0x41D00000, *(float *)&v39); v43[0] = VirtualKeyboardNode::onKey; v43[1] = 0; v28 = v27; v29 = CCMenuItemSpriteExtra::create((int)v27, 0, (int)this, (int)VirtualKeyboardNode::onKey, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v29 + 36))(v29, v23); v40 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v29 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v42, (float)(*((float *)v24 + 3) + (float)(v25 * 0.5)) * 28.0, v11 - (float)((float)((float)*((int *)v24 + 2) + 0.5) * 28.0)); v40(v29, v42); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 67) + 228))(*((_DWORD *)this + 67), v29); if ( v24[20] ) { v30 = *((_DWORD **)this + 70); if ( v30 ) { v31 = *(float *)v24; while ( 1 ) { v32 = v30[4]; if ( SLODWORD(v31) >= v32 ) { if ( v32 >= SLODWORD(v31) ) { v42[0] = v30; goto LABEL_22; } v33 = (_DWORD *)v30[1]; if ( !v33 ) { v42[0] = v30; v26 = v30 + 1; goto LABEL_22; } } else { v33 = (_DWORD *)*v30; if ( !*v30 ) { v42[0] = v30; v26 = v30; goto LABEL_22; } } v30 = v33; } } v26 = (_DWORD *)((char *)this + 280); v42[0] = (char *)this + 280; LABEL_22: v34 = (_DWORD *)*v26; if ( !*v26 ) { v35 = (_DWORD *)operator new(0x18u); v35[4] = *(_DWORD *)v24; v35[5] = 0; v36 = v42[0]; *v35 = 0; v35[1] = 0; v35[2] = v36; *v26 = v35; v37 = **((_DWORD **)this + 69); if ( v37 ) *((_DWORD *)this + 69) = v37; v41 = v35; std::__tree_balance_after_insert *>(*((_DWORD **)this + 70), (_DWORD *)*v26); v34 = v41; ++*((_DWORD *)this + 71); } v34[5] = v28; } ++v23; v24 += 24; } while ( v23 != 44 ); return VirtualKeyboardNode::refreshModifierVisuals(this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source