I can't seem to figure out how to properly use the remapKey() function. Can anyone help?
Here's what I am currently doing (which isn't working):
(1) User presses "remap keys" on the main menu and the view moves to a separate remapping screen;
(2) The user is told to press the key that he or she wants to perform the listed function (for example, when the word "main gun" is displayed, the user is supposed to press the button he/she wants to use to fire the main gun, etc.);
(3) The user then presses a button that says "remap" and the following code is executed:
remapKey(getLastKey(), KEY_POCKET_C);
(4) The user hits the return button to return to the main screen.
I can't figure out why this doesn't work. Is it because I have to use a keydown event? If so, what actor should I put it on?
Thanks in advance for the help.
Plinydogg