Page 1 of 1

Cancel Text Input?

Posted: Thu Oct 20, 2005 4:43 am
by BlackNinjaGames
In my game, when the player presses 'Y', I create an edit box, in which the type there message.

However, the Y is picked up by the edit box, so each message automatically starts with a 'Y' at the beginning. Is there a way to cancel this 'Y' press?

Posted: Thu Oct 20, 2005 8:53 pm
by The Great
Try this:

Code: Select all

if ((event.EventType == EET_KEY_INPUT_EVENT &&
		event.KeyInput.Key == KEY_KEY_Y &&
		event.KeyInput.PressedDown == false)

Posted: Fri Oct 21, 2005 12:35 am
by BlackNinjaGames
Ah, yes.

Well then :oops:

I'm using IrrlichtNX, so it took some converting, but thank you!