Page 1 of 1

Delay on button click event with OGRE. [SOLVED]

Posted: Tue Sep 19, 2006 20:07
by Habba
I have been playing around with CEGUI and OGRE for few weeks now, but there are still few things that have stayed mysteries to me. One of them being the fact that that there's quite a long delay after clicking a button on GUI before I can re-click it. If I keep clicking the button constantly, the event seems to process just once per second.

OGRE seems to process the events correctly (there are several Mousepressed events handled in one second), so the problem appears to be with CEGUI. Perhaps there's an option to set the delay between event processing?

Re: Delay on button click event with OGRE.

Posted: Fri Sep 22, 2006 04:46
by cutenoob
void CEGUI::Window::setAutoRepeatDelay ( float delay )

this one ??

Posted: Fri Sep 22, 2006 12:52
by CrazyEddie
It's possibly the 'wants multiclick events' setting.

[code]myButton->setWantsMultiClickEvents( false );[/close]

You can also change the default on a per-widgetlook basis by using using the Property tag in the WidgetLook skin definition for the button.

CE.

Posted: Fri Sep 22, 2006 16:07
by Habba
CrazyEddie wrote:You can also change the default on a per-widgetlook basis by using using the Property tag in the WidgetLook skin definition for the button.
CE.


Worked! Thanks. I had a hunch it had something to do with the double-click, but couldn't figure out how it really worked out.