How to detect if something is clicked?

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

User avatar
mikachu
Just popping in
Just popping in
Posts: 4
Joined: Fri Jan 13, 2006 20:00

How to detect if something is clicked?

Postby mikachu » Fri Mar 03, 2006 15:39

Hello all, I'm currently creating an level editor for my game, and I have a CEGUI interface on top of my 3d render. My problem is that when I click somewhere in order to, for example, move a cegui window, the mouse click is also valid for the 3d in the background.
So is there a function to detect if the mouse click has hit one of the CEGUI window? It would help me knowing if I should send the information of the click for the editor, or inhibate it because it was used by CEGUI window.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Sat Mar 04, 2006 16:28

you can check the return values of the input injection methods to determine if the event was used by CEGUI, or if it's free to pass on the app

HTH


Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests