how to fire event repeatedly

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

phoenixy
Just popping in
Just popping in
Posts: 14
Joined: Tue Feb 27, 2007 01:18

how to fire event repeatedly

Postby phoenixy » Wed Jun 06, 2007 18:41

Hello,

I want to fire event repeatedly when the mouse pointer is on some button.
EventMouseEnters or EventMouseLeaves can help determining the positiong of the mouse pointer..

but I want to do some job during the mouse pointer's on a button.

Is there any good idea?

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Thu Jun 07, 2007 08:19

What you can do is flag a Boolean between the EventMouseEnters and EventMouseLeaves events, and check this flag in your mainloop. If true, perform your processing. Of course you might put this into a nice helper class or something ;)

HTH.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests