TM::InputEventBuffer::Add Method

Adds an input event to the buffer.

Syntax

void TM::InputEventBuffer::Add(
const TM::InputEvent&in event
)

Parameters

const TM::InputEvent&in event
The input event to add.

Return value

None.

Remarks

Adding an input event inserts it such that the resulting buffer is still sorted by time. This version does not ensure that the input will be executed, it merely adds the input to the buffer. An input may not be executed if the race does not start (RaceIsRunning event is not present). See the second version of Add which is easier to use.