views:

43

answers:

1

I opened up a ball mouse and saw the slotted disks which turn past the light collectors. Where can I find code to capture, or see in a Windows program the speed that these slots are being detected as the mouse ball moves?

I am trying to write a VB6 program which tells me the speed (slots past the collector per second) that the disk is turning.

Thank you.

A: 

Often mouse speed is 'roughly' calculated using the MouseMove Event. Finding the distance moved (X1+Y1) - (X2+Y2) (i.e. Pythagoras) and the knowing the interval of time between firings for the Event.

Paul Williams