windows windows windows
Posted on 2003-11-30
k, i'm developin code that communicates wiv a telescope over a serial link. it works but i found that sometimes the scope wouldn't stop slewing after i let go of the left mouse button.
what happens is there are 4 buttons to move the scope nsew, and what i discovered was it would not stop if i clicked on one of these buttons quickly. that is click to slew and let go straight away.
what seems to be happenin is windows isn't triggerin the mouse up event which stops the scope, and the button wont depress. so i'm thinkin bout usin a timer that triggers every 500 msecs and check if the left mouse button is up, and it if is, is the button up. if the button is down then step in and stop the scope.
this will also be handy for checkin if the scope is slewing too far. problem is i can't seem to find any reference to the mouse itself so that i can test to see if the left button is down.