Ratko Jagodic wrote:
So I wrote a piece of code below and it works great on a
mac and windows but not correctly on linux. On linux the pointer seems
to stop at the edges of the pygame window (it doesn't even get to the
edges of the screen). At the edges it just keeps reporting (0,0) for dx,
dy. Any idea why this might be happening when everything works fine on
win/mac??
import pygame
pygame.init()
pygame.display.set_mode((300,200))
runThread = True
pygame.mouse.set_visible(False)
pygame.event.set_grab(True)
The code looks like it should be right. I wonder if it might also require
a fullscreen window? It doesn't sound necessary since you must already
grab the mouse. You might get further help from the SDL list? It's sure
been awhile since I looked into this kind of thing.