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').
Key Idenification
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: Key Idenification
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.