Table of Contents

Class InputEvent

Namespace
PopcorningGuineaPig.Engine.Input
Assembly
PopcorningGuineaPig.Engine.dll

Represents an input event that occurred.

public class InputEvent
Inheritance
InputEvent
Inherited Members

Constructors

InputEvent(InputKey, InputTriggerType)

Creates a new input event.

public InputEvent(InputKey inputKey, InputTriggerType triggerType)

Parameters

inputKey InputKey

The input key that generated this event

triggerType InputTriggerType

The type of trigger that occurred

Properties

InputKey

The input key that generated this event.

public InputKey InputKey { get; }

Property Value

InputKey

Timestamp

The time when this event occurred.

public DateTime Timestamp { get; }

Property Value

DateTime

TriggerType

The type of trigger that occurred.

public InputTriggerType TriggerType { get; }

Property Value

InputTriggerType

Methods

ToString()

Returns a string representation of the event.

public override string ToString()

Returns

string