CompuServe Thread

MouseMovement

1 messages in this thread
#42989From: George S. RolandOct 6, 1994 9:48 PM
I would like some advice on a general programming question. I'll probably be attempting this with The Director2 by Right Answers group. If there are any of you out there who use this program, I'd be interested to hear from you. There's a function in the program called IFMOUSE. This can continuously return x,y coordinates while the mouse is being moved. It returns x=-1 when the mouse isn't moving. Now, I'd like to be able to tell where the mouse is being moved and how fast it is moving. If there is a way to "grab" the x,y coordinates as soon as they're non -1 and as soon as they return to -1 that'd be a start, but since as soon as x=-1 whatever x was just before that would have to held somewhere. Any ideas on this one? Even if you don't know the Director, there should be a gen'l programming concept to do this. Thanks, GR