diff -r db2eab0beb45 -r cfd3445107b4 sdlterm/cython/sdlterm.pyx --- a/sdlterm/cython/sdlterm.pyx Sun Jan 27 23:51:59 2013 +0100 +++ b/sdlterm/cython/sdlterm.pyx Wed Jan 30 00:38:48 2013 +0100 @@ -17,6 +17,7 @@ cdef struct Event_mouse: int x, y + int relx, rely int button cdef struct Event: @@ -92,13 +93,13 @@ return None event = self.event if event.type == event.MOUSEMOVE: - return ('mousemove', event.mouse.x, event.mouse.y) + return ('mousemove', 0, event.mouse.x, event.mouse.y, event.mouse.relx, event.mouse.rely) if event.type == event.MOUSEDOWN: - return ('mousedown', event.mouse.x, event.mouse.y, event.mouse.button) + return ('mousedown', event.mouse.button, event.mouse.x, event.mouse.y) if event.type == event.MOUSEUP: - return ('mouseup', event.mouse.x, event.mouse.y, event.mouse.button) + return ('mouseup', event.mouse.button, event.mouse.x, event.mouse.y) if event.type == event.MOUSEWHEEL: - return ('mousewheel', event.mouse.x, event.mouse.y, event.mouse.button) + return ('mousewheel', event.mouse.button, event.mouse.x, event.mouse.y) if event.type == event.KEYPRESS: keyname = event.key.keyname if keyname: