Interface IPointerDevice
Provides an interface for interacting with pointer devices, this can be a mouse, pen, touch screen, etc.
public interface IPointerDevice : IInputDevice
- Inherited Members
Properties
DownPointers
The index of the pointers that are down
IReadOnlySet<PointerPoint> DownPointers { get; }
Property Value
PressedPointers
The index of the pointers that have been pressed since the last frame
IReadOnlySet<PointerPoint> PressedPointers { get; }
Property Value
ReleasedPointers
The index of the pointers that have been released since the last frame
IReadOnlySet<PointerPoint> ReleasedPointers { get; }
Property Value
SurfaceAspectRatio
The aspect ratio of the touch surface area
float SurfaceAspectRatio { get; }
Property Value
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
Events
SurfaceSizeChanged
Raised when the surface size of this pointer changed
event EventHandler<SurfaceSizeChangedEventArgs> SurfaceSizeChanged