Skip to content

Commit

Permalink
fix: temporarily disable pan editor keybind
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Jun 24, 2024
1 parent 7d0983e commit 7aef186
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"geode": "3.0.0-beta.1",
"geode": "3.0.0",
"gd": {
"win": "2.206"
},
Expand Down
21 changes: 11 additions & 10 deletions src/EditorUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,16 +260,17 @@ struct $modify(EditorUI) {
this->passThroughKeyDown(key, Modifier::Alt);
});
}
this->defineKeybind("robtop.geometry-dash/pan-editor", [this, lel](bool down) {
if (lel->m_playbackMode != PlaybackMode::Playing) {
s_allowPassThrough = true;
if (down) {
this->keyDown(KEY_Space);
} else {
this->keyUp(KEY_Space);
}
}
});
// Temporarily disabled until Tuliphook fix
// this->defineKeybind("robtop.geometry-dash/pan-editor", [this, lel](bool down) {
// if (lel->m_playbackMode != PlaybackMode::Playing) {
// s_allowPassThrough = true;
// if (down) {
// this->keyDown(KEY_Space);
// } else {
// this->keyUp(KEY_Space);
// }
// }
// });
});

return true;
Expand Down

0 comments on commit 7aef186

Please sign in to comment.