Delay on button click event with OGRE. [SOLVED]

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Habba
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Tue Sep 19, 2006 15:21
Location: Finland
Contact:

Delay on button click event with OGRE. [SOLVED]

Postby Habba » Tue Sep 19, 2006 20:07

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?
Last edited by Habba on Fri Sep 22, 2006 16:05, edited 1 time in total.

cutenoob
Not too shy to talk
Not too shy to talk
Posts: 23
Joined: Tue Jul 11, 2006 02:28
Location: Shanghai

Re: Delay on button click event with OGRE.

Postby cutenoob » Fri Sep 22, 2006 04:46

void CEGUI::Window::setAutoRepeatDelay ( float delay )

this one ??

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Fri Sep 22, 2006 12:52

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.

Habba
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Tue Sep 19, 2006 15:21
Location: Finland
Contact:

Postby Habba » Fri Sep 22, 2006 16:07

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 18 guests