1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 12:49:56 +00:00
openmw-tes3mp/libs/openengine/gui/events.hpp
2012-03-11 18:16:29 +04:00

31 lines
544 B
C++

#ifndef OENGINE_MYGUI_EVENTS_H
#define OENGINE_MYGUI_EVENTS_H
#include <mangle/input/event.hpp>
namespace MyGUI
{
class Gui;
}
namespace OEngine {
namespace GUI
{
/** Event handler that injects OIS events into MyGUI
*/
class EventInjector : public Mangle::Input::Event
{
MyGUI::Gui *gui;
int mouseX, mouseY;
int maxX, maxY;
public:
bool enabled;
EventInjector(MyGUI::Gui *g);
void event(Type type, int index, const void *p);
};
typedef boost::shared_ptr<EventInjector> EventInjectorPtr;
}}
#endif