/*
* 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:
Is someone iterest the complete code is here!
http://xeus32.altervista.org/tank20050503094831.rar
TNX
Xeus32