more sound effects

This commit is contained in:
2024-04-15 16:42:33 +02:00
parent 2404910870
commit 010c493b90
3 changed files with 31 additions and 17 deletions

View File

@ -60,22 +60,27 @@ void buttonsExec(void *handle) {
if (buttonsMoveLeftPressed()) {
stoneMoveLeft();
soundCtrl(e_SOUND_STONE_MOVE_LEFT);
buttonPressed = 1;
}
if (buttonsMoveRightPressed()) {
stoneMoveRight();
soundCtrl(e_SOUND_STONE_MOVE_RIGHT);
buttonPressed = 1;
}
if (buttonsRotateLeftPressed()) {
stoneRotateLeft();
soundCtrl(e_SOUND_STONE_ROTATE_LEFT);
buttonPressed = 1;
}
if (buttonsRotateRightPressed()) {
stoneRotateRight();
soundCtrl(e_SOUND_STONE_ROTATE_RIGHT);
buttonPressed = 1;
}
if (buttonsMoveDownPressed()) {
stoneMoveDown();
soundCtrl(e_SOUND_STONE_MOVE_DOWN);
buttonPressed = 1;
}