PointerDeviceBase Class
Namespace: Stride.Input
Assembly: Stride.Input.dll
Base class for pointer devices
System.Object →
PointerDeviceBase
public abstract class PointerDeviceBase : IPointerDevice, IInputDevice
|
Improve this Doc
View Source
Constructors
protected PointerDeviceBase()
|
Improve this Doc
View Source
Fields
protected PointerDeviceState PointerState
Field Value
|
Improve this Doc
View Source
Properties
public IReadOnlySet<PointerPoint> DownPointers { get; }
Property Value
public abstract Guid Id { get; }
Property Value
Type |
Description |
System.Guid |
|
public abstract string Name { get; }
Property Value
Type |
Description |
System.String |
|
public IReadOnlySet<PointerPoint> PressedPointers { get; }
Property Value
public int Priority { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
public IReadOnlySet<PointerPoint> ReleasedPointers { get; }
Property Value
public abstract IInputSource Source { get; }
Property Value
public float SurfaceAspectRatio { get; }
Property Value
Type |
Description |
System.Single |
|
public Vector2 SurfaceSize { get; }
Property Value
|
Improve this Doc
View Source
Methods
protected Vector2 Normalize(Vector2 position)
Parameters
Type |
Name |
Description |
Vector2 |
position |
|
Returns
protected void SetSurfaceSize(Vector2 newSize)
Parameters
Type |
Name |
Description |
Vector2 |
newSize |
New size of the surface
|
public virtual void Update(List<InputEvent> inputEvents)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<InputEvent> |
inputEvents |
|
|
Improve this Doc
View Source
Events
public event EventHandler<SurfaceSizeChangedEventArgs> SurfaceSizeChanged
Event Type
Extension Methods