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;
|
|
|
|
|
|
|
|
public:
|
|
|
|
bool enabled;
|
|
|
|
|
|
|
|
EventInjector(MyGUI::Gui *g) : gui(g), enabled(true) {}
|
|
|
|
void event(Type type, int index, const void *p);
|
|
|
|
};
|
2010-07-10 11:41:43 +00:00
|
|
|
}}
|
2010-07-10 11:25:04 +00:00
|
|
|
#endif
|