2013-07-05 19:17:00 +02:00
|
|
|
#include "controllers.hpp"
|
|
|
|
|
2014-08-01 17:14:35 +02:00
|
|
|
#include <MyGUI_InputManager.h>
|
2015-01-10 02:50:43 +01:00
|
|
|
#include <MyGUI_Widget.h>
|
2014-08-01 17:14:35 +02:00
|
|
|
|
2013-07-05 19:17:00 +02:00
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
namespace Controllers
|
|
|
|
{
|
2014-08-01 17:14:35 +02:00
|
|
|
void ControllerFollowMouse::prepareItem(MyGUI::Widget *_widget)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ControllerFollowMouse::addTime(MyGUI::Widget *_widget, float _time)
|
|
|
|
{
|
|
|
|
_widget->setPosition(MyGUI::InputManager::getInstance().getMousePosition());
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-07-05 19:17:00 +02:00
|
|
|
}
|
|
|
|
}
|