@@ -14,7 +14,7 @@ using namespace keybinds;
14
14
#if defined(GEODE_IS_MACOS)
15
15
static constexpr auto PLATFORM_CONTROL = Modifier::Command;
16
16
#else
17
- static constexpr auto PLATFORM_CONTROL = Modifier::Control ;
17
+ static constexpr auto PLATFORM_CONTROL = PLATFORM_CONTROL ;
18
18
#endif
19
19
20
20
class EvilBypass : public CCKeyboardDispatcher {
@@ -128,26 +128,29 @@ struct $modify(EditorUI) {
128
128
this ->passThroughKeyDown (KEY_Delete);
129
129
});
130
130
this ->defineKeybind (" robtop.geometry-dash/undo" , [=] {
131
- this ->passThroughKeyDown (KEY_Z, Modifier::Control );
131
+ this ->passThroughKeyDown (KEY_Z, PLATFORM_CONTROL );
132
132
});
133
133
this ->defineKeybind (" robtop.geometry-dash/redo" , [=] {
134
- this ->passThroughKeyDown (KEY_Z, Modifier::Control | Modifier::Shift);
134
+ this ->passThroughKeyDown (KEY_Z, PLATFORM_CONTROL | Modifier::Shift);
135
135
});
136
136
this ->defineKeybind (" robtop.geometry-dash/deselect-all" , [=] {
137
137
this ->passThroughKeyDown (KEY_D, Modifier::Alt);
138
138
});
139
139
this ->defineKeybind (" robtop.geometry-dash/copy" , [=] {
140
- this ->passThroughKeyDown (KEY_C, Modifier::Control );
140
+ this ->passThroughKeyDown (KEY_C, PLATFORM_CONTROL );
141
141
});
142
142
this ->defineKeybind (" robtop.geometry-dash/paste" , [=] {
143
- this ->passThroughKeyDown (KEY_V, Modifier::Control );
143
+ this ->passThroughKeyDown (KEY_V, PLATFORM_CONTROL );
144
144
});
145
145
this ->defineKeybind (" robtop.geometry-dash/copy-paste" , [=] {
146
- this ->passThroughKeyDown (KEY_D, Modifier::Control );
146
+ this ->passThroughKeyDown (KEY_D, PLATFORM_CONTROL );
147
147
});
148
148
this ->defineKeybind (" robtop.geometry-dash/toggle-rotate" , [=] {
149
149
this ->passThroughKeyDown (KEY_R);
150
150
});
151
+ this ->defineKeybind (" robtop.geometry-dash/toggle-transform" , [=] {
152
+ this ->passThroughKeyDown (KEY_T, PLATFORM_CONTROL);
153
+ });
151
154
this ->defineKeybind (" robtop.geometry-dash/toggle-free-move" , [=] {
152
155
this ->passThroughKeyDown (KEY_F);
153
156
});
@@ -161,7 +164,7 @@ struct $modify(EditorUI) {
161
164
this ->passThroughKeyDown (KEY_Enter);
162
165
});
163
166
this ->defineKeybind (" robtop.geometry-dash/playback-music" , [=] {
164
- this ->passThroughKeyDown (KEY_Enter, Modifier::Control );
167
+ this ->passThroughKeyDown (KEY_Enter, PLATFORM_CONTROL );
165
168
});
166
169
this ->defineKeybind (" robtop.geometry-dash/prev-build-tab" , [=] {
167
170
// not passthrough because this is different from vanilla
@@ -243,7 +246,7 @@ struct $modify(EditorUI) {
243
246
auto x = std::to_string (i);
244
247
auto key = static_cast <enumKeyCodes>(KEY_Zero + i);
245
248
this ->defineKeybind (" robtop.geometry-dash/save-editor-position-" + x, [=] {
246
- this ->passThroughKeyDown (key, Modifier::Control );
249
+ this ->passThroughKeyDown (key, PLATFORM_CONTROL );
247
250
});
248
251
this ->defineKeybind (" robtop.geometry-dash/load-editor-position-" + x, [=] {
249
252
this ->passThroughKeyDown (key, Modifier::Alt);
@@ -412,6 +415,13 @@ struct $modify(EditorUI) {
412
415
{ Keybind::create (KEY_R, Modifier::None) },
413
416
Category::EDITOR_UI, false
414
417
});
418
+ BindManager::get ()->registerBindable ({
419
+ " robtop.geometry-dash/toggle-transform" ,
420
+ " Transform" ,
421
+ " Toggle Transform Control" ,
422
+ { Keybind::create (KEY_T, PLATFORM_CONTROL) },
423
+ Category::EDITOR_UI, false
424
+ });
415
425
BindManager::get ()->registerBindable ({
416
426
" robtop.geometry-dash/toggle-free-move" ,
417
427
" Free Move" ,
@@ -614,7 +624,7 @@ struct $modify(EditorUI) {
614
624
" Save Editor Position " + x,
615
625
" Save the current editor camera position in the slot " + x + " . "
616
626
" You can reload this slot back with Load Editor Position " + x,
617
- { Keybind::create (static_cast <enumKeyCodes>(KEY_Zero + i), Modifier::Control ) },
627
+ { Keybind::create (static_cast <enumKeyCodes>(KEY_Zero + i), PLATFORM_CONTROL ) },
618
628
Category::EDITOR_UI, false
619
629
});
620
630
BindManager::get ()->registerBindable ({
0 commit comments