I want to add keyboard input to my Menu. Mouse input is working great.
I did w->activate() when something i decided happens, but it didn't get the "effect" (focus) that it gets when the mouse is over it.
Any ideia of what i need to do?
Thanks.
Focus is not working for me
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 15
- Joined: Thu Nov 06, 2008 18:44
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
Perhaps the input is actually ending up with a child window of 'w'? You could try w->getActiveChild and deactivate it, or something? Though having said that, it's probably not really what you want to be doing.
CE
Perhaps the input is actually ending up with a child window of 'w'? You could try w->getActiveChild and deactivate it, or something? Though having said that, it's probably not really what you want to be doing.
CE
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
-
- Just popping in
- Posts: 15
- Joined: Thu Nov 06, 2008 18:44
-
- Just popping in
- Posts: 15
- Joined: Thu Nov 06, 2008 18:44
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
I think I misunderstood, in my first response.
In order to get the 'hover' effect currently requires that the mouse be over the button. What this means is that when implementing a keyboard interface you basically have to move the mouse around programmatically to achieve these effects; there is no other way to do this currently, which means if you want your keyboard interface and the user to have control of the mouse, you'll end up rewriting sections of CEGUI.
CE.
In order to get the 'hover' effect currently requires that the mouse be over the button. What this means is that when implementing a keyboard interface you basically have to move the mouse around programmatically to achieve these effects; there is no other way to do this currently, which means if you want your keyboard interface and the user to have control of the mouse, you'll end up rewriting sections of CEGUI.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
-
- Just popping in
- Posts: 15
- Joined: Thu Nov 06, 2008 18:44
Who is online
Users browsing this forum: No registered users and 2 guests