libTAS icon indicating copy to clipboard operation
libTAS copied to clipboard

[Enhancement] Scale the mouse input to the desired final resolution.

Open Spikestuff opened this issue 2 years ago • 1 comments

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: scale

The other would be working with % relative to the window size, making it more cleaner to scale along.

Spikestuff avatar Jun 03 '22 05:06 Spikestuff

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

clementgallet avatar Jun 06 '22 16:06 clementgallet