I seem to be having problems displaying keyboard input from a IGUIEditBox.
Is there an elegant/automatic way of doing this without having to rely on a massive switch statement within the Event handler catering for every KEY_PRESS. Here is roughly what I'm doing.
1. Getting active camera and setting InputReciverEnabled to true
2. Setting editBox to visible
3. Getting GUIEnvironment to setFocus on editBox
Edit box and blinking cursor cursor are displayed, but no input from the keyboard displayed.
Is it supposed to persist itself automatically, or do I need to handle them as events?
Any help would be appreciated[/list]
________
Persian cooking
Display keyboard input in IGUIEditBox
Display keyboard input in IGUIEditBox
Last edited by area51 on Tue Feb 22, 2011 1:00 pm, edited 1 time in total.
-
Guest
Thanks for your advice, I completely forgot about the Mesh viewer tutorial, although I still have the problem.
The bug is in my implementation as I am easily able to get it working in the 'Hello world' example, even with addCameraSceneNodeFPS and setInputReceiverEnabled etc..
Again thanks for your prompt feedback.
The bug is in my implementation as I am easily able to get it working in the 'Hello world' example, even with addCameraSceneNodeFPS and setInputReceiverEnabled etc..
Again thanks for your prompt feedback.
..forgot to log in as well, is on a Windows box also. Cant seem to get one working in the TechDemo either, maybe something in there is causing this problem, anyway, back to debugger
________
HONDA ELYSION SPECIFICATIONS
________
HONDA ELYSION SPECIFICATIONS