I've just discovered Irrlicht and my first questions are coming.
I would like to get to keyboard entry and put it into a statictext.
Code: Select all
const char* input;
stringc charconvert;
class TraitementDesMessages : public IEventReceiver
{
public:
virtual bool OnEvent(SEvent event)
{
if (event.EventType == EET_KEY_INPUT_EVENT && event.KeyInput.PressedDown)
{
stringc charconvert=key2string(event.KeyInput.Key);
input = charconvert.c_str();
printf("%s",input);
return true;
}
}
};
So with this little code when the user presses on a letter, the programm writes it in the console.
But now, how can I do to write the letter in my statictext ?
Thank you for your future help !