MouseSimulated Class
Namespace: Stride.Input
Assembly: Stride.Input.dll
Derived from MouseSimulated:
public class MouseSimulated : MouseDeviceBase, IMouseDevice, IPointerDevice, IInputDevice
|
Improve this Doc
View Source
Constructors
public MouseSimulated(InputSourceSimulated source)
Parameters
|
Improve this Doc
View Source
Properties
public override Guid Id { get; }
Property Value
Type |
Description |
System.Guid |
|
Overrides
public override bool IsPositionLocked { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
public MouseDeviceState MouseState { get; }
Property Value
public override string Name { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
public PointerDeviceState PointerState { get; }
Property Value
public override IInputSource Source { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Methods
public override void LockPosition(bool forceCenter = false)
Parameters
Type |
Name |
Description |
System.Boolean |
forceCenter |
|
Overrides
public override void SetPosition(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
Overrides
public void SimulateMouseDown(MouseButton button)
Parameters
public void SimulateMouseUp(MouseButton button)
Parameters
public void SimulateMouseWheel(float wheelDelta)
Parameters
Type |
Name |
Description |
System.Single |
wheelDelta |
|
public void SimulatePointer(PointerEventType pointerEventType, Vector2 position, int id = 0)
Parameters
public override void UnlockPosition()
Overrides
public override void Update(List<InputEvent> inputEvents)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<InputEvent> |
inputEvents |
|
Overrides
Extension Methods