mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
* fix(input): the layout editor shows the same placement as the session Editing a layout stored for one orientation while the editor is open in the other drew raw stored coordinates, so elements turned into flat, overlapping bars. Route the editor through OnScreenLayout like the on-screen controls: matched layouts are regenerated for the current screen, everything else follows the same fit, and the dirty check compares against what was shown when the editor opened. * fix(input): reset and scale in the editor frame the session saves The editor draft now carries the frame it was rebased to: the gamepad scaler is rebuilt with the editor surface's real dimensions when edits begin, so reset regenerates legacy controls for the display the user is editing instead of the primary display. Stock default positions keep their own frame aspect and are refitted into the draft frame before being applied, so reset on a differently shaped display lands where the editor shows and no longer marks an untouched layout as changed. * fix(input): refit only the default positions on reset and update the test callers --------- Co-authored-by: maxjivi05 <maxjividen@gmail.com>