Recording

Base class for input recordings of specified Input type (Mouse or Keyboard).

Input type must define a BaseState type defining all state to be recorded (all input state in Input should be either in BaseState or calculated from BaseState data).

Acts as an input range of Input.BaseState.

abstract
class Recording (
Input
) {
Input.BaseState inputState_;
}

Members

Functions

empty
bool empty()

Is the recording at the end? (no more recorded frames of input)

front
const(Input.BaseState) front()

Get input for the current frame in the recording.

popFront
void popFront()

Move to the next frame in the recording.

Meta