Probably a Simple Problem...

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
wraithdrit
Just popping in
Just popping in
Posts: 3
Joined: Thu Jul 14, 2005 12:50

Probably a Simple Problem...

Postby wraithdrit » Thu Jul 14, 2005 13:15

Okay, I'm using CEGUI and Ogre. Slightly dated versions of both, but fairly recent (just not bleeding edge).

Here is my issue. I have lots of buttons coming and going, being created and being deleted. I also have three buttons that stay around all the time. Regardless of whether its buttons that are created and deleted or the three buttons that are always present the same problem crops up, which means I know its in my code somewhere. :P

The problem is this. The first click works beautifully. If the mouse does not move AT ALL, the next click fails to fire the event. If the mouse moves just a hair, then the click event will fire just fine.

Also if I wait about a full two seconds, for the second push, it fires fine. But if I press once, wait a small bit and click again (sooner than two seconds), nothing.

So, any clues as to what to check?

- Wraith

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

Re: Probably a Simple Problem...

Postby CrazyEddie » Thu Jul 14, 2005 18:18

Hi,

This is because, by default, all widgets are set to receieve "multi-click" messages (double-click, triple-click, etc). All you have to do is disable this for your buttons:

Code: Select all

myButton->setWantsMultiClickEvents(false);


This should see you click-happy :)

User avatar
wraithdrit
Just popping in
Just popping in
Posts: 3
Joined: Thu Jul 14, 2005 12:50

Re: Probably a Simple Problem...

Postby wraithdrit » Thu Jul 14, 2005 20:59

Awesome, thanks.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 6 guests