2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 23:47:42 +00:00

Restructuring for CVar-enabled controls

This commit is contained in:
Jack Andersen
2015-12-05 15:24:51 -10:00
parent fc67d86b29
commit 21e671e36f
11 changed files with 261 additions and 34 deletions

View File

@@ -0,0 +1,31 @@
#include "Specter/Control.hpp"
namespace Specter
{
Control::Control(ViewResources& res, View& parentView,
std::unique_ptr<IControlBinding>&& controlBinding)
: View(res, parentView), m_controlBinding(std::move(controlBinding)) {}
void Control::setControlBinding(std::unique_ptr<IControlBinding>&& controlBinding)
{
m_controlBinding = std::move(controlBinding);
}
void Control::mouseDown(const boo::SWindowCoord&, boo::EMouseButton, boo::EModifierKey)
{
}
void Control::mouseUp(const boo::SWindowCoord&, boo::EMouseButton, boo::EModifierKey)
{
}
void Control::mouseEnter(const boo::SWindowCoord&)
{
}
void Control::mouseLeave(const boo::SWindowCoord&)
{
}
}