Skip to content

Commit 322247a

Browse files
committed
fix remaining incorrect 1p defaults
1 parent 635b90c commit 322247a

File tree

1 file changed

+36
-10
lines changed

1 file changed

+36
-10
lines changed

src/UILayer.cpp

+36-10
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,11 @@ struct $modify(UILayer) {
452452
{
453453
Keybind::create(KEY_Space),
454454
Keybind::create(KEY_W),
455+
Keybind::create(KEY_Up),
455456
ControllerBind::create(CONTROLLER_A),
456457
ControllerBind::create(CONTROLLER_Up),
457-
ControllerBind::create(CONTROLLER_RB)
458+
ControllerBind::create(CONTROLLER_RB),
459+
ControllerBind::create(CONTROLLER_LB)
458460
},
459461
Category::PLAY_1P_PLATFORMER,
460462
false
@@ -466,11 +468,9 @@ struct $modify(UILayer) {
466468
{
467469
Keybind::create(KEY_Space),
468470
Keybind::create(KEY_W),
469-
Keybind::create(KEY_Up),
470471
ControllerBind::create(CONTROLLER_A),
471472
ControllerBind::create(CONTROLLER_Up),
472-
ControllerBind::create(CONTROLLER_RB),
473-
ControllerBind::create(CONTROLLER_LB)
473+
ControllerBind::create(CONTROLLER_RB)
474474
},
475475
Category::PLAY_2P_PLATFORMER,
476476
false
@@ -487,47 +487,73 @@ struct $modify(UILayer) {
487487
"robtop.geometry-dash/move-left",
488488
"Move left",
489489
"Move left in 1P platformer levels",
490-
{ Keybind::create(cocos2d::KEY_A), ControllerBind::create(CONTROLLER_Left), ControllerBind::create(CONTROLLER_LTHUMBSTICK_LEFT) },
490+
{
491+
Keybind::create(cocos2d::KEY_A),
492+
ControllerBind::create(CONTROLLER_Left),
493+
ControllerBind::create(CONTROLLER_LTHUMBSTICK_LEFT),
494+
Keybind::create(KEY_Left),
495+
ControllerBind::create(CONTROLLER_RTHUMBSTICK_LEFT)
496+
},
491497
Category::PLAY_1P_PLATFORMER,
492498
false
493499
});
494500
BindManager::get()->registerBindable({
495501
"robtop.geometry-dash/move-right",
496502
"Move right",
497503
"Move right in 1P platformer levels",
498-
{ Keybind::create(cocos2d::KEY_D), ControllerBind::create(CONTROLLER_Right), ControllerBind::create(CONTROLLER_LTHUMBSTICK_RIGHT) },
504+
{
505+
Keybind::create(cocos2d::KEY_D),
506+
ControllerBind::create(CONTROLLER_Right),
507+
ControllerBind::create(CONTROLLER_LTHUMBSTICK_RIGHT),
508+
Keybind::create(KEY_Right),
509+
ControllerBind::create(CONTROLLER_RTHUMBSTICK_RIGHT)
510+
},
499511
Category::PLAY_1P_PLATFORMER,
500512
false
501513
});
502514
BindManager::get()->registerBindable({
503515
"robtop.geometry-dash/move-left-p1",
504516
"Move left P1",
505517
"Player 1 move left in 2P platformer levels",
506-
{ Keybind::create(cocos2d::KEY_A), ControllerBind::create(CONTROLLER_Left), ControllerBind::create(CONTROLLER_LTHUMBSTICK_LEFT) },
518+
{
519+
Keybind::create(cocos2d::KEY_A),
520+
ControllerBind::create(CONTROLLER_Left),
521+
ControllerBind::create(CONTROLLER_LTHUMBSTICK_LEFT)
522+
},
507523
Category::PLAY_2P_PLATFORMER,
508524
false
509525
});
510526
BindManager::get()->registerBindable({
511527
"robtop.geometry-dash/move-right-p1",
512528
"Move right P1",
513529
"Player 1 move right in 2P platformer levels",
514-
{ Keybind::create(cocos2d::KEY_D), ControllerBind::create(CONTROLLER_Right), ControllerBind::create(CONTROLLER_LTHUMBSTICK_RIGHT) },
530+
{
531+
Keybind::create(cocos2d::KEY_D),
532+
ControllerBind::create(CONTROLLER_Right),
533+
ControllerBind::create(CONTROLLER_LTHUMBSTICK_RIGHT)
534+
},
515535
Category::PLAY_2P_PLATFORMER,
516536
false
517537
});
518538
BindManager::get()->registerBindable({
519539
"robtop.geometry-dash/move-left-p2",
520540
"Move left P2",
521541
"Player 2 move left in 2P platformer levels",
522-
{ Keybind::create(KEY_Left), ControllerBind::create(CONTROLLER_RTHUMBSTICK_LEFT) },
542+
{
543+
Keybind::create(KEY_Left),
544+
ControllerBind::create(CONTROLLER_RTHUMBSTICK_LEFT)
545+
},
523546
Category::PLAY_2P_PLATFORMER,
524547
false
525548
});
526549
BindManager::get()->registerBindable({
527550
"robtop.geometry-dash/move-right-p2",
528551
"Move right P2",
529552
"Player 2 move right in 2P platformer levels",
530-
{ Keybind::create(KEY_Right), ControllerBind::create(CONTROLLER_RTHUMBSTICK_RIGHT) },
553+
{
554+
Keybind::create(KEY_Right),
555+
ControllerBind::create(CONTROLLER_RTHUMBSTICK_RIGHT)
556+
},
531557
Category::PLAY_2P_PLATFORMER,
532558
false
533559
});

0 commit comments

Comments
 (0)