From edf329ca65e06016e7015a0de04bdd0687aefa16 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 13 Dec 2015 18:56:02 -1000 Subject: [PATCH] API rename --- specter/include/Specter/Control.hpp | 4 +++- specter/lib/Button.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/specter/include/Specter/Control.hpp b/specter/include/Specter/Control.hpp index c0d48c38f..a31b55183 100644 --- a/specter/include/Specter/Control.hpp +++ b/specter/include/Specter/Control.hpp @@ -15,7 +15,9 @@ struct IControlBinding struct IButtonBinding : IControlBinding { - virtual void pressed(const boo::SWindowCoord& coord)=0; + /** Pressed/Released while Hovering action, + * cancellable by holding the button and releasing outside */ + virtual void activated(const boo::SWindowCoord& coord)=0; }; struct IFloatBinding : IControlBinding diff --git a/specter/lib/Button.cpp b/specter/lib/Button.cpp index 8b6a941e6..185e8c119 100644 --- a/specter/lib/Button.cpp +++ b/specter/lib/Button.cpp @@ -240,7 +240,7 @@ void Button::mouseUp(const boo::SWindowCoord& coord, boo::EMouseButton button, b { Log.report(LogVisor::Info, "button '%s' activated", m_textStr.c_str()); if (m_controlBinding && dynamic_cast(m_controlBinding)) - static_cast(*m_controlBinding).pressed(coord); + static_cast(*m_controlBinding).activated(coord); } m_pressed = false; if (m_hovered)