Closed psyGamer closed 6 months ago
On some platforms SDL_GetWindowPosition will always return 0,0 while mouse position is still absolute. This would result in an absolute position inside Input.Mouse.Position instead of a relative one. This PR lets SDL handle the relative positioning.
SDL_GetWindowPosition
Input.Mouse.Position
Looks good, thanks! I don't remember why I did it the other way originally...
On some platforms
SDL_GetWindowPosition
will always return 0,0 while mouse position is still absolute. This would result in an absolute position insideInput.Mouse.Position
instead of a relative one. This PR lets SDL handle the relative positioning.