FosterFramework / Foster

A small C# game framework
MIT License
422 stars 37 forks source link

Use relative mouse API #59

Closed psyGamer closed 6 months ago

psyGamer commented 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.

NoelFB commented 6 months ago

Looks good, thanks! I don't remember why I did it the other way originally...