added sound definitions for pressing and releasing main menu buttons
[rocksndiamonds.git] / src / screens.c
index 6757061efb78766868ebd0b08f354ca4073d4aca..212e2b4caf76c05e675f5c5820e5a8932951eedb 100644 (file)
@@ -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)
+    {
       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 */
   {