TM::InputEventValue Class

Describes the event type and value for the input event. Because the event system in TrackMania is not hardcoded to specific types in the replay file, the game stores the type as an index to a dynamic array. You can access this index through the EventIndex property. To decode the event type, you must compare it to the indices defined in the EventIndices class returned by the EventIndices property. See the Iterate current inputs example on the Snippets page.

After the event type is determined, you may access the event value through either the Binary or Analog properties, depending on the event type. Binary events are button presses (Accelerate, Brake, Left, Right) while analog events are axis values (Steer and Gas).

Behaviors

~TM::InputEventValue()
TM::InputEventValue()

Methods

bool get_Binary()
void set_Binary(bool value)
void set_Analog(int value)

Properties

int8 EventIndex