Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/console.cc3
-rw-r--r--src/client/input.cc3
2 files changed, 6 insertions, 0 deletions
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 <cmath>
#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");
}
}