Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::repro::ReplayHeldMutationKeyState Class Reference

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.

Detailed Description

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.

Member Function Documentation

◆ advanceFrame()

std::size_t donner::editor::repro::ReplayHeldMutationKeyState::advanceFrame ( const ReproFrame & frame)
inlinenodiscard

Update held keys from a recorded frame and return its repeated source-rewrite count.

Parameters
frameRecorded key edges and modifier snapshot for this frame.
Returns
Number of repeated source rewrites to charge.

The documentation for this class was generated from the following file: