libTAS
libTAS copied to clipboard
[Enhancement] Scale the mouse input to the desired final resolution.
There's two ways to go at it, one way is to provide a window where you're able to use the source resolution, and place desired final resolution and to scale the mouse input like so aiming for absolute coordinates:
The other would be working with % relative to the window size, making it more cleaner to scale along.
I like solution 1 better. Should libtas auto-fills source resolution, by storing resolution inside movie metadata (or even not show it at all) ? Also, this solution fails on games that has multiple resolutions with mouse inputs (should be very rare)
About solution 2, I'm afraid about making rounding errors even with the original resolution. And also, we don't always want to scale mouse inputs, e.g. in FPS games