Event reciver Not work fine :?:

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Xeus32
Posts: 20
Joined: Tue Mar 22, 2005 9:11 am
Location: Italy , Padua

Event reciver Not work fine :?:

Post by Xeus32 »

I write my class event receiver in MyEventReceiver.h :

/*
* MyEventReceiver
*/
class MyEventReceiver : public IEventReceiver
{
public:
virtual bool OnEvent(SEvent event);
SEvent MyEvent;
// Eventi Gui
bool MyGuiEvent();
// Key Imput
bool MyKeyInput();
private:
// Start Solo Play
bool MyStartSoloPlay();
};

next, in main.cpp, I have created the EventRecever class and created the irrlicht dirver

EventReceiver = new MyEventReceiver;

device = createDevice(Configurator->videotype,
dimension2d<s32>(Configurator->resX, Configurator->resY),
Configurator->bitrate,
false, false, false, EventReceiver);

next i draw a button bat the receiver doesn't receive the event type 0 (GUI) bat the other type haven't problem ( type 1: EET_MOUSE_INPUT_EVENT: type 2:EET_KEY_INPUT_EVENT) !

Why?????????????:?: :?: :?: :?: :?: :?: :?:
Is not possible !!!!!:evil: :evil: :evil: :evil: :evil: :evil:
Is someone iterest the complete code is here!
http://xeus32.altervista.org/tank20050503094831.rar

TNX

Xeus32
hybrid

Post by hybrid »

Try the GUI example from the Irrlicht distro. Compare its code with yours. If you encounter same problems there post them here.
Post Reply