// // PlayerObject::releaseButton from 0x1403981d0 to 0x1403982d3 (259 bytes) // // 13 xrefs: // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x1402175c9 // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x1402175d6 // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x14021777c // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x140217789 // > GJBaseGameLayer::handleButton @ 0x1402339ee // > GJBaseGameLayer::handleButton @ 0x140233a2a // > PlayerObject::releaseButton @ 0x1403981e7 // > PlayerObject::releaseButton @ 0x1403981f2 // > PlayerObject::releaseAllButtons @ 0x14039f2aa // > PlayerObject::releaseAllButtons @ 0x14039f2c1 // > PlayerObject::disablePlayerControls @ 0x14039f4d3 // > PlayerObject::disablePlayerControls @ 0x14039f4e0 // > @ 0x1406d64dc // // 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 // bool PlayerObject::releaseButton(PlayerObject *a1, PlayerButton a2) { bool v5; // zf bool v6; // cc PlayerButton v7; // [rsp+38h] [rbp+10h] BYREF if ( a2 == 5 ) { PlayerObject::releaseButton(a1, (PlayerButton)2); PlayerObject::releaseButton(a1, (PlayerButton)3); return !a1->m_controlsDisabled; } if ( !a1->m_inputsLocked ) { v7 = a2; *(_BYTE *)sub_1400CDBF0((__int64 *)&a1->m_holdingButtons, (int *)&v7) = 0; } if ( a1->m_controlsDisabled ) return 0; if ( a1->m_jumpBuffered ) PlayerObject::placeStreakPoint(a1); if ( a2 != Jump ) { if ( a2 == 2 ) { a1->m_holdingLeft = 0; v6 = a1->m_platformerXVelocity >= 0.0; } else { if ( a2 != 3 ) return 1; v6 = a1->m_platformerXVelocity <= 0.0; a1->m_holdingRight = 0; } if ( !v6 ) a1->m_isMoving = 0; return 1; } v5 = !a1->m_isDashing; *(_WORD *)&a1->m_jumpBuffered = 0; a1->m_touchedPad = 1; if ( !v5 ) { PlayerObject::stopDashing(a1); return 1; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source