SRL Archive - Research & Development Lounge

Key Code Functions


Iron Man

2008-03-25 18:00:00

This is mostly for other games, because its not too useful for rs2, but it could be for rs2 in some cases.

It's pretty simple, but the things kinda explain themselves. It pressed down the key that the name of the function is. It's just mostly so you don't have to remember all the keycodes.

If you want me to add any I will.

mixster

2008-03-25 18:05:58

Or you could press f1 and scroll down the huge ASCII table :)
Nice idea though maybe but it all into one function using a case next time?
E.g.
case InputKey of
'ctr': KeyDown(blah);
'shift': KeyDown(blah);
etc.

Iron Man

2008-03-25 18:25:16

My F Keys don't work on my keyboard for some weird reason :(. I cut it down alot, and made it all into one function.

mixster

2008-03-26 03:09:26

Just need a KeyUp proc now so we don't have to keep ctrl down for the next few hours :)