From fd6f22924fd0d85ee20fb1d5e4588ac441675ea9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 18 Jun 2008 21:42:38 +0000 Subject: ui sounds --- src/client/console.cc | 3 +++ src/client/input.cc | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/client') diff --git a/src/client/console.cc b/src/client/console.cc index c5feb86..6d286a9 100644 --- a/src/client/console.cc +++ b/src/client/console.cc @@ -9,6 +9,7 @@ #include #include "auxiliary/functions.h" +#include "audio/audio.h" #include "client/chat.h" #include "client/console.h" #include "client/video.h" @@ -93,6 +94,8 @@ void Console::toggle() } setkeyboardmode(console()->visible() || (core::application()->connected() && chat::visible())); + + audio::play("ui/console"); } void Console::keypressed(unsigned int key) diff --git a/src/client/input.cc b/src/client/input.cc index cb54e32..d3feefe 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -4,6 +4,7 @@ the terms and conditions of the GNU General Public License version 2 */ +#include "audio/audio.h" #include "core/core.h" #include "client/client.h" #include "client/input.h" @@ -78,6 +79,7 @@ void func_ui_control(std::string const &args) render::Camera::set_direction(0.0f); render::Camera::set_pitch(0.0f); } + audio::play("ui/control"); } void func_ui_console(std::string const &args) @@ -99,6 +101,7 @@ void func_ui_view(std::string const &args) local_roll = 0; local_pitch = 0; local_direction = 0; + audio::play("ui/view"); } } -- cgit v1.2.3