When I debug the program I use a cout << event.EventType << endl; to see what incoming events that I get but there is no-show for "0" (which is the ENUM val of EET_GUI_EVENT).
Code: Select all
IGUIEnvironment* guienv = device->getGUIEnvironment();
guienv->addButton( rect<s32>(2,2,60,20), NULL, 101, L"Quit" );
while( device->run() && videodriver )
{
if( device->isWindowActive() )
{
videodriver->beginScene( true, true, bgcolor );
videodriver->draw2DImage( background, position2d<int>(0,0) );
guienv->drawAll();
videodriver->endScene();
}
}