API rename

This commit is contained in:
Jack Andersen 2015-12-13 18:56:02 -10:00
parent 2efa64b7b0
commit edf329ca65
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,9 @@ struct IControlBinding
struct IButtonBinding : 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 struct IFloatBinding : IControlBinding

View File

@ -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()); Log.report(LogVisor::Info, "button '%s' activated", m_textStr.c_str());
if (m_controlBinding && dynamic_cast<IButtonBinding*>(m_controlBinding)) if (m_controlBinding && dynamic_cast<IButtonBinding*>(m_controlBinding))
static_cast<IButtonBinding&>(*m_controlBinding).pressed(coord); static_cast<IButtonBinding&>(*m_controlBinding).activated(coord);
} }
m_pressed = false; m_pressed = false;
if (m_hovered) if (m_hovered)