Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-16 16:34:15 +0000
committerStijn Buys <ingar@osirion.org>2008-10-16 16:34:15 +0000
commit1a28393dabf4f4696bf433ddde52e7a25253c955 (patch)
tree4d4fa4034f30fc882a78ab6ea148a32e83b9e88c /src/ui/button.cc
parent1e0df536c2fae85c317ce9c3cc17603d5f98c911 (diff)
various user interface related updates
Diffstat (limited to 'src/ui/button.cc')
-rw-r--r--src/ui/button.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ui/button.cc b/src/ui/button.cc
index 08fd0e9..e36d036 100644
--- a/src/ui/button.cc
+++ b/src/ui/button.cc
@@ -71,18 +71,18 @@ void Button::draw_text()
}
bool Button::on_keypress(const int key, const unsigned int modifier)
-{
- return false;
-}
-
-bool Button::on_keyrelease(const int key, const unsigned int modifier)
-{
+{
if (key == 512 + SDL_BUTTON_LEFT) {
core::cmd() << button_command << std::endl;
audio::play("ui/button");
return true;
}
-
+
+ return false;
+}
+
+bool Button::on_keyrelease(const int key, const unsigned int modifier)
+{
return false;
}