mirror of https://github.com/AxioDL/metaforce.git
API rename
This commit is contained in:
parent
2efa64b7b0
commit
edf329ca65
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue