sound volume configurable

This commit is contained in:
2024-05-21 12:31:55 +02:00
parent f9b63c06fe
commit faf75e158a
19 changed files with 129 additions and 27 deletions

View File

@ -84,27 +84,22 @@ void buttonsExec(void *handle) {
if (buttonsMoveLeftPressed()) {
stoneMoveLeft();
soundCtrl(SOUND_MOTION);
buttonPressed = 1;
}
if (buttonsMoveRightPressed()) {
stoneMoveRight();
soundCtrl(SOUND_MOTION);
buttonPressed = 1;
}
if (buttonsRotateLeftPressed()) {
stoneRotateLeft();
soundCtrl(SOUND_MOTION);
buttonPressed = 1;
}
if (buttonsRotateRightPressed()) {
stoneRotateRight();
soundCtrl(SOUND_MOTION);
buttonPressed = 1;
}
if (buttonsMoveDownPressed()) {
stoneMoveDown();
soundCtrl(SOUND_MOTION);
buttonPressed = 1;
}