Skip to content

Commit

Permalink
fix remaining incorrect 1p defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Sep 13, 2024
1 parent 635b90c commit 322247a
Showing 1 changed file with 36 additions and 10 deletions.
46 changes: 36 additions & 10 deletions src/UILayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,11 @@ struct $modify(UILayer) {
{
Keybind::create(KEY_Space),
Keybind::create(KEY_W),
Keybind::create(KEY_Up),
ControllerBind::create(CONTROLLER_A),
ControllerBind::create(CONTROLLER_Up),
ControllerBind::create(CONTROLLER_RB)
ControllerBind::create(CONTROLLER_RB),
ControllerBind::create(CONTROLLER_LB)
},
Category::PLAY_1P_PLATFORMER,
false
Expand All @@ -466,11 +468,9 @@ struct $modify(UILayer) {
{
Keybind::create(KEY_Space),
Keybind::create(KEY_W),
Keybind::create(KEY_Up),
ControllerBind::create(CONTROLLER_A),
ControllerBind::create(CONTROLLER_Up),
ControllerBind::create(CONTROLLER_RB),
ControllerBind::create(CONTROLLER_LB)
ControllerBind::create(CONTROLLER_RB)
},
Category::PLAY_2P_PLATFORMER,
false
Expand All @@ -487,47 +487,73 @@ struct $modify(UILayer) {
"robtop.geometry-dash/move-left",
"Move left",
"Move left in 1P platformer levels",
{ Keybind::create(cocos2d::KEY_A), ControllerBind::create(CONTROLLER_Left), ControllerBind::create(CONTROLLER_LTHUMBSTICK_LEFT) },
{
Keybind::create(cocos2d::KEY_A),
ControllerBind::create(CONTROLLER_Left),
ControllerBind::create(CONTROLLER_LTHUMBSTICK_LEFT),
Keybind::create(KEY_Left),
ControllerBind::create(CONTROLLER_RTHUMBSTICK_LEFT)
},
Category::PLAY_1P_PLATFORMER,
false
});
BindManager::get()->registerBindable({
"robtop.geometry-dash/move-right",
"Move right",
"Move right in 1P platformer levels",
{ Keybind::create(cocos2d::KEY_D), ControllerBind::create(CONTROLLER_Right), ControllerBind::create(CONTROLLER_LTHUMBSTICK_RIGHT) },
{
Keybind::create(cocos2d::KEY_D),
ControllerBind::create(CONTROLLER_Right),
ControllerBind::create(CONTROLLER_LTHUMBSTICK_RIGHT),
Keybind::create(KEY_Right),
ControllerBind::create(CONTROLLER_RTHUMBSTICK_RIGHT)
},
Category::PLAY_1P_PLATFORMER,
false
});
BindManager::get()->registerBindable({
"robtop.geometry-dash/move-left-p1",
"Move left P1",
"Player 1 move left in 2P platformer levels",
{ Keybind::create(cocos2d::KEY_A), ControllerBind::create(CONTROLLER_Left), ControllerBind::create(CONTROLLER_LTHUMBSTICK_LEFT) },
{
Keybind::create(cocos2d::KEY_A),
ControllerBind::create(CONTROLLER_Left),
ControllerBind::create(CONTROLLER_LTHUMBSTICK_LEFT)
},
Category::PLAY_2P_PLATFORMER,
false
});
BindManager::get()->registerBindable({
"robtop.geometry-dash/move-right-p1",
"Move right P1",
"Player 1 move right in 2P platformer levels",
{ Keybind::create(cocos2d::KEY_D), ControllerBind::create(CONTROLLER_Right), ControllerBind::create(CONTROLLER_LTHUMBSTICK_RIGHT) },
{
Keybind::create(cocos2d::KEY_D),
ControllerBind::create(CONTROLLER_Right),
ControllerBind::create(CONTROLLER_LTHUMBSTICK_RIGHT)
},
Category::PLAY_2P_PLATFORMER,
false
});
BindManager::get()->registerBindable({
"robtop.geometry-dash/move-left-p2",
"Move left P2",
"Player 2 move left in 2P platformer levels",
{ Keybind::create(KEY_Left), ControllerBind::create(CONTROLLER_RTHUMBSTICK_LEFT) },
{
Keybind::create(KEY_Left),
ControllerBind::create(CONTROLLER_RTHUMBSTICK_LEFT)
},
Category::PLAY_2P_PLATFORMER,
false
});
BindManager::get()->registerBindable({
"robtop.geometry-dash/move-right-p2",
"Move right P2",
"Player 2 move right in 2P platformer levels",
{ Keybind::create(KEY_Right), ControllerBind::create(CONTROLLER_RTHUMBSTICK_RIGHT) },
{
Keybind::create(KEY_Right),
ControllerBind::create(CONTROLLER_RTHUMBSTICK_RIGHT)
},
Category::PLAY_2P_PLATFORMER,
false
});
Expand Down

0 comments on commit 322247a

Please sign in to comment.