Skip to content

Commit 60715dd

Browse files
authored
GJBaseGameLayer::queueButton timestamp (#1292)
1 parent e9fb9bb commit 60715dd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bindings/2.2081/GeometryDash.bro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7596,7 +7596,7 @@ class GJBaseGameLayer : cocos2d::CCLayer, TriggerEffectDelegate {
75967596
bool processSongState(int musicID, float spawnDelay, float levelTime, int songOffset, float volume, float speed, gd::vector<SongTriggerState>* states, SongTriggerGameObject* object) = win 0x245350, imac 0x161dc0, m1 0x12fcd0, ios 0x207074;
75977597
void processStateObjects() = win inline, imac 0x12a7c0, m1 0x1028b8, ios 0x1ea840;
75987598
void processTransformActions(bool visibleFrame) = win 0x22c680, imac 0x144ce0, m1 0x118960, ios 0x1f7544;
7599-
void queueButton(int button, bool push, bool isPlayer2) = win inline, imac 0x14a900, m1 0x11d2d8, ios 0x1fa9bc;
7599+
void queueButton(int button, bool push, bool isPlayer2, double timestamp) = win inline, imac 0x14a900, m1 0x11d2d8, ios 0x1fa9bc;
76007600
void queueTimeWarp(float timeWarp) = win inline, imac 0x14f370, m1 0x121104, ios 0x1fd444;
76017601
void reAddToStickyGroup(GameObject* object) = win inline, imac 0x13e200, m1 0x112e18, ios 0x1f3080;
76027602
void recordAction(int button, bool down, bool player2) = win inline, imac 0x14b570, m1 0x11deec, ios 0x1fb2a8;

bindings/2.2081/inline/GJBaseGameLayer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,14 +957,15 @@ void GJBaseGameLayer::processStateObjects() {
957957
}
958958
}
959959

960-
void GJBaseGameLayer::queueButton(int button, bool push, bool isPlayer2) {
960+
void GJBaseGameLayer::queueButton(int button, bool push, bool isPlayer2, double timestamp) {
961961
if (button <= 0 || button > 3) {
962962
return;
963963
}
964964
PlayerButtonCommand command = {};
965965
command.m_button = (PlayerButton) button;
966966
command.m_isPush = push;
967967
command.m_isPlayer2 = isPlayer2;
968+
command.m_timestamp = timestamp;
968969
m_queuedButtons.push_back(command);
969970
}
970971

0 commit comments

Comments
 (0)