Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Correct keybindings, fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Bourgeois committed Dec 1, 2022
1 parent 6a895e6 commit c5df15b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ext/Stardust-Celeste
8 changes: 4 additions & 4 deletions src/GameStateControls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ void GameState::bind_controls() {
{Player::move_right, world->player.get()});

n3ds_controller->add_command(
{(int)Input::N3DSButtons::Y, KeyFlag::Press | KeyFlag::Held},
{(int)Input::N3DSButtons::X, KeyFlag::Press | KeyFlag::Held},
{Player::move_forward, world->player.get()});
n3ds_controller->add_command(
{(int)Input::N3DSButtons::A, KeyFlag::Press | KeyFlag::Held},
{(int)Input::N3DSButtons::B, KeyFlag::Press | KeyFlag::Held},
{Player::move_backward, world->player.get()});
n3ds_controller->add_command(
{(int)Input::N3DSButtons::X, KeyFlag::Press | KeyFlag::Held},
{(int)Input::N3DSButtons::Y, KeyFlag::Press | KeyFlag::Held},
{Player::move_left, world->player.get()});
n3ds_controller->add_command(
{(int)Input::N3DSButtons::B, KeyFlag::Press | KeyFlag::Held},
{(int)Input::N3DSButtons::A, KeyFlag::Press | KeyFlag::Held},
{Player::move_right, world->player.get()});

vita_controller->add_command(
Expand Down
2 changes: 1 addition & 1 deletion src/Menu/Menustate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ void MenuState::bind_controls() {
{(int)Input::VitaButtons::Down, KeyFlag::Press},
{MenuState::down, this});

n3ds_controller->add_command({(int)Input::N3DSButtons::A, KeyFlag::Press},
n3ds_controller->add_command({(int)Input::N3DSButtons::B, KeyFlag::Press},
{MenuState::trigger, this});
n3ds_controller->add_command({(int)Input::N3DSButtons::Up, KeyFlag::Press},
{MenuState::up, this});
Expand Down

0 comments on commit c5df15b

Please sign in to comment.