Page 1 of 1

void remapKey(int fromKey, int toKey)?

PostPosted: Wed Nov 26, 2003 8:43 am
by ingsan
can anyone make me a little tut on this? :oops:
Thanx guys...

PostPosted: Wed Nov 26, 2003 1:19 pm
by makslane
Use this function to redirect any keys.

In your game, actor shot with KEY_RCTRL.
Your user can change this in a configuration screen:

In a KeyDown event, put this:

remapKey(getLastKey(), KEY_CTRL);

Now, the key pressed by user, will be redirected to KEY_CTRL, so you don't need to change your defaults game keys.

ingsan

PostPosted: Mon Dec 01, 2003 1:02 pm
by ingsan
8)
Cool...ThanX Maxslane! :D

??

PostPosted: Mon Dec 01, 2003 1:09 pm
by ingsan
Well i'm thinking,maxslane,do u remember this jump and Climb problem?
So,With this method,would i be able to remap another "action" on my KEY_UP?
ex first Up_Key is y=y+40;
second Up_Key becomes yvelocity=-4;

T_Ank u... :?:

PostPosted: Mon Dec 01, 2003 10:24 pm
by makslane
No, but you can put a var to count your key ups

PostPosted: Thu Dec 04, 2003 3:17 pm
by ingsan
ok
Thank u... 8)