Skip to content

Commit

Permalink
remove extraneous click noise
Browse files Browse the repository at this point in the history
  • Loading branch information
goblinhack committed Jan 20, 2025
1 parent 80a8945 commit 247ab3c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 2 deletions.
Binary file modified data/fonts/6x8.tga
Binary file not shown.
Binary file modified data/fonts/6x8.xcf
Binary file not shown.
2 changes: 0 additions & 2 deletions src/wid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4596,7 +4596,6 @@ void wid_key_down(const struct SDL_Keysym *key, int x, int y)
DBG("WID: Key over by wid: %s for (%d,%d)", w->name.c_str(), ascii_mouse_x, ascii_mouse_y);
if ((w->on_key_down)(w, key)) {
DBG("WID: Key grabbed by wid: %s for (%d,%d)", w->name.c_str(), ascii_mouse_x, ascii_mouse_y);
sound_play("click");
//
// Do not raise, gets in the way of popups the callback creates.
//
Expand All @@ -4616,7 +4615,6 @@ void wid_key_down(const struct SDL_Keysym *key, int x, int y)
if (w->on_key_down) {
if ((w->on_key_down)(w, key)) {
DBG("WID: key grabbed by wid: %s for (%d,%d)", w->name.c_str(), ascii_mouse_x, ascii_mouse_y);
sound_play("click");
//
// Do not raise, gets in the way of popups the callback
// creates.
Expand Down

0 comments on commit 247ab3c

Please sign in to comment.