Display keyboard input in IGUIEditBox

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
area51
Posts: 338
Joined: Thu Mar 18, 2004 10:20 pm
Location: UK
Contact:

Display keyboard input in IGUIEditBox

Post by area51 »

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
Last edited by area51 on Tue Feb 22, 2011 1:00 pm, edited 1 time in total.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Hm, maybe your are using Linux? There are still some bugs in that version.
If not, try and have a look at the 9th tutorial, it works there without problems.
Guest

Post by 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.
area51
Posts: 338
Joined: Thu Mar 18, 2004 10:20 pm
Location: UK
Contact:

Post by area51 »

..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
Post Reply