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

Re: [pygame] Problem with mouse going back to the center of the screen





On Tue, Jul 20, 2010 at 6:32 PM, SurferIX <olivier.pons@xxxxxxxxx> wrote:
Hi!

I've got a problem with the mouse: it's going back to the center of
the screen!
I don't know where it could come from because it does this only in
full screen.
It's exactly the same problem with the game Enigma.

Â

A known difference in other pygame versions was that in fullscreen a lot more mouse events were generated.
If you retire only one mouse event in each frame, then this is were your problem kicks.
In each frame, you can retire all the mouse move events and process only the last ( and process all clicks)

--
claxo
Â