Problems with Tooltips and injectTimePulse
Posted: Mon Aug 14, 2006 20:35
Hi,
I've ported the Sample_Demo8 to my own application, the sample with lua support. Well, it was really easy, so no problem with that.
So, I set up everything like in the demo and in the sample framework. But there's one problem: The tooltips don't show up.
I inject every frame the time delay in seconds, but nothing happens. So I tried to inject them by hand (a value of 0.01). It works without problems for the sample demo, but not in my appliciation. Using a value of 1.0, the tooltips show up immediately.
This is really crazy and I don't know, what could be wrong
Here's the code for every frame:
I've ported the Sample_Demo8 to my own application, the sample with lua support. Well, it was really easy, so no problem with that.
So, I set up everything like in the demo and in the sample framework. But there's one problem: The tooltips don't show up.
I inject every frame the time delay in seconds, but nothing happens. So I tried to inject them by hand (a value of 0.01). It works without problems for the sample demo, but not in my appliciation. Using a value of 1.0, the tooltips show up immediately.
This is really crazy and I don't know, what could be wrong

Here's the code for every frame:
Code: Select all
CEGUI::System& guiSystem = CEGUI::System::getSingleton();
float delay = TheTimeMgr->GetFloatDeltaTime() * 0.001f;
const Point m = TheInterfaceMgr->GetMousePosition();
guiSystem.injectMousePosition(m.x, m.y);
guiSystem.injectTimePulse(delay);
guiSystem.renderGUI();