creating the slot:
Code: Select all
CEGUI::Window* slot;
slot = CEGUI::WindowManager::getSingleton().createWindow(_lookName + "/StaticImage", name);
parent->addChildWindow(slot);
slot->setPosition(position);
slot->setSize(size);
slot->subscribeEvent(CEGUI::Window::EventDragDropItemEnters, CEGUI::Event::Subscriber(&handleDragEnter, this));
slot->subscribeEvent(CEGUI::Window::EventDragDropItemLeaves, CEGUI::Event::Subscriber(&handleDragLeaveInventory, this));
slot->subscribeEvent(CEGUI::Window::EventDragDropItemDropped, CEGUI::Event::Subscriber(&handleDragDroppedInventory, this));
And it works really fine, but when the framerate of Ogre3D falls down or the user moves the Item to fast which is in the slot the methods handleDragLeaveInventory and handleDragDroppedInventory will not be called and it breaks the system.
Have someone made similar experiences?
How do you solve the problem?
Thanks for helping.
Sorry my bad english.