Class PointerSimulated
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
Name
The name of the device
public override string Name { get; }
Property Value
PointerState
public PointerDeviceState PointerState { get; }
Property Value
Source
The input source the device belongs to.
public override IInputSource Source { get; }
Property Value
Methods
CancelPointer(Vector2, int)
public void CancelPointer(Vector2 position, int id = 0)
Parameters
MovePointer(Vector2, int)
public void MovePointer(Vector2 position, int id = 0)
Parameters
PressPointer(Vector2, int)
public void PressPointer(Vector2 position, int id = 0)
Parameters
ReleasePointer(Vector2, int)
public void ReleasePointer(Vector2 position, int id = 0)
Parameters
SimulatePointer(PointerEventType, Vector2, int)
public void SimulatePointer(PointerEventType pointerEventType, Vector2 position, int id = 0)
Parameters
pointerEventType
PointerEventTypeposition
Vector2id
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