[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Speed of mouse position capture



> I am encountering one difficulty, which is that the speed of mouse
> position capture seems quite slow. I had expected that the app would
> receive a MOUSEMOTION event every time the mouse shifted to a new pixel,
> and that connecting up the locations of these MOUSEMOTION events would
> give an almost exact representation of the path of the mouth across the
> screen. However, what happens in practice is that, if the mouse is
> moving fast, consecutive MOUSEMOTION events can be separated by more
> than 20 pixels. This makes it very hard to interpret the path of the
> mouse with enough precision - it ends up divided into a small number of
> long line segments.

What OS? Win9X sampled the mouse less frequently that Win2K and later.
Also serial mouse is slower than ps2, which is slower that usb.

Alan