mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 06:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			535 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 mMouseX;
 | 
						|
    int mMouseY;
 | 
						|
 | 
						|
  public:
 | 
						|
    bool enabled;
 | 
						|
 | 
						|
    EventInjector(MyGUI::Gui *g);
 | 
						|
    void event(Type type, int index, const void *p);
 | 
						|
  };
 | 
						|
 | 
						|
  typedef boost::shared_ptr<EventInjector> EventInjectorPtr;
 | 
						|
}}
 | 
						|
#endif
 |