30 #ifndef _GG_OgreGUIInputPlugin_h_
31 #define _GG_OgreGUIInputPlugin_h_
33 #include <OgrePlugin.h>
37 #include <boost/signals.hpp>
41 # ifdef GiGiOgrePlugin_OIS_EXPORTS
42 # define GG_OGRE_PLUGIN_API __declspec(dllexport)
44 # define GG_OGRE_PLUGIN_API __declspec(dllimport)
47 # define GG_OGRE_PLUGIN_API
50 namespace Ogre {
class RenderWindow; }
72 static void SetRenderWindow(Ogre::RenderWindow* window);
75 static Ogre::RenderWindow* GetRenderWindow();
78 void ConnectHandlers();
79 void DisconnectHandlers();
82 virtual void HandleSystemEvents() = 0;
83 virtual void HandleWindowResize(
X width,
Y height);
84 virtual void HandleWindowClose();
86 boost::signals::connection m_handle_events_connection;
87 boost::signals::connection m_resize_connection;
88 boost::signals::connection m_close_connection;
90 static Ogre::RenderWindow* s_render_window;