Tracks repeat-capable mutation keys whose down state persists across replay frames. More...
#include "donner/editor/repro/ReplayResourceBudget.h"
Public Member Functions | |
| std::size_t | advanceFrame (const ReproFrame &frame) |
| Update held keys from a recorded frame and return its repeated source-rewrite count. | |
Tracks repeat-capable mutation keys whose down state persists across replay frames.
ImGui owns held-key state after a key-down edge and can synthesize a repeated editing shortcut on a later frame even when that frame contains no input edge. Advance this state before estimating each frame, then charge the returned source-rewrite units through the normal input budget before dispatch. Modifier state comes from the recorded frame snapshot, matching ApplyInputOverride.
|
inlinenodiscard |
Update held keys from a recorded frame and return its repeated source-rewrite count.
| frame | Recorded key edges and modifier snapshot for this frame. |