Skip to content

InputEvent

Eduard Gushchin edited this page Jun 21, 2026 · 5 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.InputEvent
Namespace Electron2D
Kind class
Category Input

Overview

Base class for Electron2D input events delivered to Electron2D.Node._Input(Electron2D.InputEvent).

Syntax

public class Electron2D.InputEvent : Electron2D.Resource

Remarks

This class is an event resource and does not represent a concrete device action by itself. Concrete keyboard and mouse events derive from it.

Instances are mutable and are not synchronized; use them from the input dispatch thread that owns the event.

Thread Safety

Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.

Since

This class is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventKey
  • Electron2D.InputEventMouseButton
  • Electron2D.InputEventMouseMotion

Members

Member Kind Summary
Device Property Gets or sets the device index that produced this event.
Electron2D.InputEvent() Constructor Initializes a new instance of the InputEvent type.

Member Details

Device

Kind: Property

public System.Int32 Device { get; set; }

Summary

Gets or sets the device index that produced this event.

Remarks

Platform device identifiers are copied into this value by the internal input mapper. The value is informational in 0.1.0 Preview and can be used by future device-specific action bindings.

Value

The current device value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEvent

Electron2D.InputEvent()

Kind: Constructor

public Electron2D.InputEvent()

Summary

Initializes a new instance of the InputEvent type.

Remarks

The new instance follows the lifetime and validation rules of its declaring type.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEvent

Clone this wiki locally