Table of Contents

Class PointerSimulated

Namespace
Stride.Input
Assembly
Stride.Input.dll

Simulation of PointerEvents

public class PointerSimulated : PointerDeviceBase, IPointerDevice, IInputDevice
Inheritance
PointerSimulated
Implements
Inherited Members

Constructors

PointerSimulated(InputSourceSimulated)

public PointerSimulated(InputSourceSimulated source)

Parameters

source InputSourceSimulated

Properties

Id

The unique identifier of this device

public override Guid Id { get; }

Property Value

Guid

Name

The name of the device

public override string Name { get; }

Property Value

string

PointerState

public PointerDeviceState PointerState { get; }

Property Value

PointerDeviceState

Source

The input source the device belongs to.

public override IInputSource Source { get; }

Property Value

IInputSource

Methods

CancelPointer(Vector2, int)

public void CancelPointer(Vector2 position, int id = 0)

Parameters

position Vector2
id int

MovePointer(Vector2, int)

public void MovePointer(Vector2 position, int id = 0)

Parameters

position Vector2
id int

PressPointer(Vector2, int)

public void PressPointer(Vector2 position, int id = 0)

Parameters

position Vector2
id int

ReleasePointer(Vector2, int)

public void ReleasePointer(Vector2 position, int id = 0)

Parameters

position Vector2
id int

SimulatePointer(PointerEventType, Vector2, int)

public void SimulatePointer(PointerEventType pointerEventType, Vector2 position, int id = 0)

Parameters

pointerEventType PointerEventType
position Vector2
id int

Update(List<InputEvent>)

Updates the input device, filling the list inputEvents with input events that were generated by this device this frame

public override void Update(List<InputEvent> inputEvents)

Parameters

inputEvents List<InputEvent>

A list that gets filled with input events that were generated since the last frame

Remarks

Input devices are always updated after their respective input source