FosterFramework / Foster

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

Include the mouse delta as part of the input state #74

Closed photex closed 5 months ago

photex commented 6 months ago

Feel free to kick this PR into a lake if it's not considered useful (or if you're already doing this somewhere and I didn't catch that). I think its useful that SDL already provides this as part of it's input subsystem, so this PR exposes includes the relative mouse position as part of the input state.

NoelFB commented 5 months ago

yeah I think getting the raw mouse delta can be useful for situations where you want the mouse to control a camera... I may tweak this afterwards but I'll merge this in, thanks!