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

[pygame] Re: [pygtk] Relative mouse controlled game in gtk



Johan Dahlin wrote:
Greg Ewing wrote:

* All mouse movements reported as relative movements,
  with no restrictions from hitting the edges of the
  screen.

X will only report mouse absolute mouse positions, you can emulate this by calculating it yourself though.

Yes, but then you stop getting movement when the mouse
reaches the edge of the screen. Which is why I will
probably need to keep warping the mouse back to the
middle whenever it moves.

--
Greg