IPointerDevice Interface
Namespace: Stride.InputAssembly: Stride.Input.dll
Provides an interface for interacting with pointer devices, this can be a mouse, pen, touch screen, etc.
public interface IPointerDevice : IInputDevice
Name | Description | |
---|---|---|
Properties | ||
DownPointers | The index of the pointers that are down |
|
PressedPointers | The index of the pointers that have been pressed since the last frame |
|
ReleasedPointers | The index of the pointers that have been released since the last frame |
|
SurfaceAspectRatio | The aspect ratio of the touch surface area |
|
SurfaceSize | The size of the surface used by the pointer, for a mouse this is the size of the window, for a touch device, the size of the touch area, etc. |
|
Events | ||
SurfaceSizeChanged | Raised when the surface size of this pointer changed |
Properties
DownPointers
The index of the pointers that are down
IReadOnlySet<PointerPoint> DownPointers { get; }
Property Value
Type | Description |
---|---|
IReadOnlySet<PointerPoint> |
PressedPointers
The index of the pointers that have been pressed since the last frame
IReadOnlySet<PointerPoint> PressedPointers { get; }
Property Value
Type | Description |
---|---|
IReadOnlySet<PointerPoint> |
ReleasedPointers
The index of the pointers that have been released since the last frame
IReadOnlySet<PointerPoint> ReleasedPointers { get; }
Property Value
Type | Description |
---|---|
IReadOnlySet<PointerPoint> |
SurfaceAspectRatio
The aspect ratio of the touch surface area
float SurfaceAspectRatio { get; }
Property Value
Type | Description |
---|---|
System.Single |
SurfaceSize
The size of the surface used by the pointer, for a mouse this is the size of the window, for a touch device, the size of the touch area, etc.
Vector2 SurfaceSize { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Events
SurfaceSizeChanged
Raised when the surface size of this pointer changed
event EventHandler<SurfaceSizeChangedEventArgs> SurfaceSizeChanged
Event Type
Type | Description |
---|---|
System.EventHandler<SurfaceSizeChangedEventArgs> |