Key Idenification

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
communism
Posts: 8
Joined: Tue Mar 13, 2012 1:59 pm

Key Idenification

Post by communism »

Is there a way to modify the MastEventReceiver to return what key was pressed? For instance, if you are modifying the controls of a game and 'w' is the default for move forward and you want to change it to something else, you click change it and the program waits for a key to be pressed (any key) and then you hit the key 'j'. How can irrlicht identify that;
A - A key (any key) on the keyboard was pressed (in this case 'j').
B - What key was pressed (again in this case 'j').
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Key Idenification

Post by hybrid »

Maybe you should check the tutorials first? Or read the event receiver's code more throroughly. It happens all in there. Every key event is a key press (or release), and the character returned in there is the key pressed.
Post Reply