MouseDeviceBase Class
Namespace: Stride.Input
Assembly: Stride.Input.dll
public abstract class MouseDeviceBase : PointerDeviceBase, IMouseDevice, IPointerDevice, IInputDevice
|
Improve this Doc
View Source
Constructors
protected MouseDeviceBase()
|
Improve this Doc
View Source
Fields
protected MouseDeviceState MouseState
Field Value
|
Improve this Doc
View Source
Properties
public Vector2 Delta { get; }
Property Value
public IReadOnlySet<MouseButton> DownButtons { get; }
Property Value
public abstract bool IsPositionLocked { get; }
Property Value
Type |
Description |
System.Boolean |
|
public Vector2 Position { get; }
Property Value
public IReadOnlySet<MouseButton> PressedButtons { get; }
Property Value
public IReadOnlySet<MouseButton> ReleasedButtons { get; }
Property Value
|
Improve this Doc
View Source
Methods
public abstract void LockPosition(bool forceCenter = false)
Parameters
Type |
Name |
Description |
System.Boolean |
forceCenter |
|
public abstract void SetPosition(Vector2 normalizedPosition)
Parameters
Type |
Name |
Description |
Vector2 |
normalizedPosition |
|
public abstract void UnlockPosition()
public override void Update(List<InputEvent> inputEvents)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<InputEvent> |
inputEvents |
|
Overrides
Extension Methods