v3n0w
13-05-2008 06:00:12
Well, I followed the sample to set up my application...
Here´s the .h code:
So I set the callbacks with oisMouse and keyboard setEventCallback method...
And the callback functions like the demo.
Also the update with GUIManager->injectTime();
What more I need to do to get it working?
I have this and no interation at all:
Thanks in advance.
Here´s the .h code:
#ifndef C_GUI_H
#define C_GUI_H
#include <OIS/OIS.h>
#include "Ogre.h"
#include "QuickGUI.h"
using namespace OIS;
class cGUI : public MouseListener, public KeyListener
{
Keyboard* oisKeyboard;
Mouse* oisMouse;
QuickGUI::GUIManager* GUIManager;
QuickGUI::Sheet* sheet;
QuickGUI::TextBox* mouseOverTB;
QuickGUI::Window* CBTestWindow;
QuickGUI::ComboBox* colorCB;
public:
cGUI(Mouse*, Ogre::SceneManager*, OIS::Keyboard*);
~cGUI();
void init();
void update(const Ogre::FrameEvent &evt);
void selectionMade(const QuickGUI::EventArgs& args);
bool mouseMoved( const OIS::MouseEvent &e );
bool mousePressed( const OIS::MouseEvent &e, OIS::MouseButtonID id );
bool mouseReleased( const OIS::MouseEvent &e, OIS::MouseButtonID id );
bool keyPressed( const OIS::KeyEvent &arg );
bool keyReleased( const OIS::KeyEvent &arg );
};
#endif
So I set the callbacks with oisMouse and keyboard setEventCallback method...
And the callback functions like the demo.
Also the update with GUIManager->injectTime();
What more I need to do to get it working?
I have this and no interation at all:
Thanks in advance.