I asked this question in Newbie Central, but recieved no answer. I'm posting it here in the hopes that more forum members will see it, and maybe someone will have an answer.
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:147183
Aug 22 2004, 10:42 pm
|
|
Aug 23 2004, 3:59 am
|
|
KeyUp and KeyDown functions are not yet built into DM, but they have been asked for many times and will eventually be added. At the moment, you have to program your own messy workaround if you want something like that; and with the way things currently work, it would not work well enough to be worth the effort.
|