2010-07-10 11:25:04 +00:00
|
|
|
#ifndef OENGINE_MYGUI_EVENTS_H
|
|
|
|
#define OENGINE_MYGUI_EVENTS_H
|
|
|
|
|
|
|
|
#include <mangle/input/event.hpp>
|
|
|
|
|
|
|
|
namespace MyGUI
|
|
|
|
{
|
|
|
|
class Gui;
|
|
|
|
}
|
|
|
|
|
2010-07-10 11:41:43 +00:00
|
|
|
namespace OEngine {
|
2010-07-10 11:25:04 +00:00
|
|
|
namespace GUI
|
|
|
|
{
|
|
|
|
/** Event handler that injects OIS events into MyGUI
|
|
|
|
*/
|
2010-07-16 19:46:57 +00:00
|
|
|
class EventInjector : public Mangle::Input::Event
|
2010-07-10 11:25:04 +00:00
|
|
|
{
|
|
|
|
MyGUI::Gui *gui;
|
2010-07-20 18:22:15 +00:00
|
|
|
int mouseX, mouseY;
|
|
|
|
int maxX, maxY;
|
2010-07-10 11:25:04 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
bool enabled;
|
|
|
|
|
2010-07-20 18:22:15 +00:00
|
|
|
EventInjector(MyGUI::Gui *g);
|
2010-07-10 11:25:04 +00:00
|
|
|
void event(Type type, int index, const void *p);
|
|
|
|
};
|
2010-07-17 17:29:39 +00:00
|
|
|
|
|
|
|
typedef boost::shared_ptr<EventInjector> EventInjectorPtr;
|
2010-07-10 11:41:43 +00:00
|
|
|
}}
|
2010-07-10 11:25:04 +00:00
|
|
|
#endif
|