projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added sound definitions for pressing and releasing main menu buttons
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index 6757061efb78766868ebd0b08f354ca4073d4aca..212e2b4caf76c05e675f5c5820e5a8932951eedb 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-1764,7
+1764,14
@@
void HandleMainMenu(int mx, int my, int dx, int dy, int button)
button_pressed = TRUE;
if (button_pressed != button_pressed_last)
button_pressed = TRUE;
if (button_pressed != button_pressed_last)
+ {
DrawCursorAndText_Main(choice, TRUE, button_pressed);
DrawCursorAndText_Main(choice, TRUE, button_pressed);
+
+ if (button_pressed)
+ PlaySound(SND_MENU_BUTTON_PRESSING);
+ else
+ PlaySound(SND_MENU_BUTTON_RELEASING);
+ }
}
else if (dx || dy) /* keyboard input */
{
}
else if (dx || dy) /* keyboard input */
{