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?
Cancel Text Input?
-
- Posts: 31
- Joined: Mon Sep 05, 2005 4:47 pm
- Contact:
Try this:
Code: Select all
if ((event.EventType == EET_KEY_INPUT_EVENT &&
event.KeyInput.Key == KEY_KEY_Y &&
event.KeyInput.PressedDown == false)
-
- Posts: 31
- Joined: Mon Sep 05, 2005 4:47 pm
- Contact:
Ah, yes.
Well then
I'm using IrrlichtNX, so it took some converting, but thank you!
Well then
![Embarassed :oops:](./images/smilies/icon_redface.gif)
I'm using IrrlichtNX, so it took some converting, but thank you!
GMan
Black Ninja Games
Black Ninja Games