[pygtk] Relative mouse controlled game in gtk
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Nov 1 08:09:24 WST 2007
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
More information about the pygtk
mailing list