Hi all,
In my application I need to remove the ESC keybinding that kills the application...and moreover I'd like to hide the FPS label...I know that maybe these features are inside the CEGuiSample class...which class must I use instead of that for my applications?
CEgui sample application...how to disable ESC and hide FPS?
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
Depending on exactly what you need, the samples framework may not be the ideal system to be using (though it is useful for prototyping things!).
The FPS readout and the ESCape key binding are hard-coded into the "base app" parts of the sample framework (so for OpenGL the relevant code is in Samples/common/src/CEGuiOpenGLBaseApplication.cpp). There is currently no setting to disable these things (though having a setting for the FPS is a good idea - I'll add this for the 0.7.0 release, amongst some other enhancements I already had in mind).
So anyway, you'll need to hack away at the samples framework code - so hack away!
CE.
Depending on exactly what you need, the samples framework may not be the ideal system to be using (though it is useful for prototyping things!).
The FPS readout and the ESCape key binding are hard-coded into the "base app" parts of the sample framework (so for OpenGL the relevant code is in Samples/common/src/CEGuiOpenGLBaseApplication.cpp). There is currently no setting to disable these things (though having a setting for the FPS is a good idea - I'll add this for the 0.7.0 release, amongst some other enhancements I already had in mind).
So anyway, you'll need to hack away at the samples framework code - so hack away!
CE.
Who is online
Users browsing this forum: No registered users and 10 guests