diff options
Diffstat (limited to 'src/ui/button.cc')
-rw-r--r-- | src/ui/button.cc | 14 |
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; } |