i create a window 1/4 of the root width and height
and i put it at the bottom left side
is there any input reader so when the mouse is on top of the window, the alpha of the window is 1 and set the window active
when the mouse is outside the window the alpha will be 0.5 and deactive the window
i'm using default window
changing alpha is easy but i still cannot figure how to check whether the mouse cursor is inside the window or outside the window
any help is appreciated
[Solved]mouse cursor in window
Moderators: CEGUI MVP, CEGUI Team
[Solved]mouse cursor in window
Last edited by K0h4n on Thu Jul 17, 2008 15:13, edited 1 time in total.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
You could subscribe the Window::EventMouseEnters / Window::EventMouseLeaves for the Window and respond to those.
Alternatively, you could check the System::getWindowContainingMouse return result periodically, be aware there is a minor known issue with this member function: http://www.cegui.org.uk/mantis/view.php?id=213
HTH
CE.
Alternatively, you could check the System::getWindowContainingMouse return result periodically, be aware there is a minor known issue with this member function: http://www.cegui.org.uk/mantis/view.php?id=213
HTH
CE.
Who is online
Users browsing this forum: No registered users and 11 guests