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:
parent
125938d4e2
commit
1d7e8c37ea
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue