Skip to content

Commit

Permalink
button mapping fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kikutano committed Feb 5, 2021
1 parent 1bf3d71 commit 086b883
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mega Tetris For Sega Genesis

**Current Code Version:** 0.8.1
**Current Code Version:** 0.8.2

**Depencency:** [SGDK 1.5.1](https://github.com/Stephane-D/SGDK)

Expand Down
8 changes: 4 additions & 4 deletions src/gameplay/tetris_gameplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ void onJoypadInput(u16 joy, u16 changed, u16 state) {
performGoBackToMainMenu();
}

if (state & BUTTON_Y) {
if (state & BUTTON_B) {
deleteSpritesOnRow(10);

playSoundFxRotation();
rotateAntiClockwiseCurrentTetrisPiece();
}
else if (state & BUTTON_X) {
else if (state & BUTTON_A) {
playSoundFxRotation();
rotateClockwiseCurrentTetrisPiece();
}
Expand Down Expand Up @@ -130,8 +130,8 @@ void updateDirectionalInputControls() {
downPressed = value & BUTTON_DOWN;
rightPressed = value & BUTTON_RIGHT;
leftPressed = value & BUTTON_LEFT;
rotationAntiClockwisePressed = value & BUTTON_X;
rotationClockwisePressed = value & BUTTON_Y;
rotationAntiClockwisePressed = value & BUTTON_A;
rotationClockwisePressed = value & BUTTON_B;
}

void updateInputControls() {
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ int main() {

while(1) {
//VDP_showFPS(TRUE);
updateSceneManager();
updateSceneManager();
VDP_waitVSync();
}

Expand Down
2 changes: 1 addition & 1 deletion src/mainmenu/mainmenu_scene_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ void loadAndShowMainMenuGraphicsWithFadeIn() {
VDP_setPalette(PAL0,
mainmenu_scene_background.palette->data);

VDP_drawTextBG(BG_A, "v0.8.1", 30, 26);
VDP_drawTextBG(BG_A, "v0.8.2", 30, 26);
VDP_drawTextBG(BG_A, "@kikutano", 30, 27);
}

0 comments on commit 086b883

Please sign in to comment.