From 1a28393dabf4f4696bf433ddde52e7a25253c955 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 16 Oct 2008 16:34:15 +0000 Subject: various user interface related updates --- src/ui/button.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ui/button.cc') 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; } -- cgit v1.2.3