There are default event handlers for key down (client.East(), etc.) and things like MouseDown and MouseUp, but I can't seem to find anything for KeyUp. The code I wish to make requires a flag (boolen variable) to store wether or not a key is currently depressed. The code would look something like this:
client
var/keystorageflag=0
KeyDown(which) //Imaginary Event Handler.
if(which=="5")
keystorageflag=1
KeyUp(which) //Imaginary Event Handler.
if(which=="5")
keystorageflag=0
Is there any way in DM to do that sort of thing?
ID:171697
Aug 20 2004, 11:34 am
|
|