Class InputEvent
Represents an input event that occurred.
Inherited Members
Namespace: PopcorningGuineaPig.Engine.Input
Assembly: PopcorningGuineaPig.Engine.dll
Syntax
public class InputEvent
Constructors
| Edit this page View SourceInputEvent(InputKey, InputTriggerType)
Creates a new input event.
Declaration
public InputEvent(InputKey inputKey, InputTriggerType triggerType)
Parameters
| Type | Name | Description |
|---|---|---|
| InputKey | inputKey | The input key that generated this event |
| InputTriggerType | triggerType | The type of trigger that occurred |
Properties
| Edit this page View SourceInputKey
The input key that generated this event.
Declaration
public InputKey InputKey { get; }
Property Value
| Type | Description |
|---|---|
| InputKey |
Timestamp
The time when this event occurred.
Declaration
public DateTime Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
TriggerType
The type of trigger that occurred.
Declaration
public InputTriggerType TriggerType { get; }
Property Value
| Type | Description |
|---|---|
| InputTriggerType |
Methods
| Edit this page View SourceToString()
Returns a string representation of the event.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |