Add UI sound (button_press) for double click.

The main use is to help to notice failed double-click because
with slow operation (or slow system), you sometimes wait for nothing.
This commit is contained in:
Ali El Gariani 2007-11-01 16:36:11 +00:00
parent 125938d4e2
commit 1d7e8c37ea

View file

@ -632,6 +632,9 @@ void menu::handle_event(const SDL_Event& event)
} else {
double_clicked_ = true;
last_was_doubleclick_ = true;
if(!silent_) {
sound::play_UI_sound(game_config::sounds::button_press);
}
}
} else if (last_was_doubleclick_) {
// If we have a double click as the next event, it means