Expand description
FrameInput: one frame’s input as a screen sees it. Generic over the
game’s ActionSet (ticket 1106), and frame_seconds, which makes
a frame time a platform reports safe to add up.
In tests, a screen sees only the actions it declares
(Screen::actions, ADR-0008 §3):
declared filters a frame’s input down to
them, and asking whether an action it didn’t declare is held fails the
test.
Structs§
- Frame
Input - One frame’s input as a screen sees it.
Functions§
- frame_
seconds dtas seconds that can pass: itself when finite and at least 0, else 0 (a NaN, an infinity or a negative frame time is a platform’s nonsense, and no time passes).