Class TouchDevice
Handles raw touch events
[PrivateApi]
public class TouchDevice : IPointerDevice, IInputDevice, IDisposable
- Inheritance
-
TouchDevice
- Implements
- Inherited Members
Remarks
This class is supposed to be used on per-toplevel basis, don't use a shared one
Constructors
TouchDevice()
public TouchDevice()
Methods
Dispose()
public void Dispose()
ProcessRawEvent(RawInputEventArgs)
Processes raw event. Is called after preprocessing by InputManager
public void ProcessRawEvent(RawInputEventArgs ev)
Parameters
TryGetPointer(RawPointerEventArgs)
Gets a pointer for specific event args.
public IPointer? TryGetPointer(RawPointerEventArgs ev)
Parameters
ev
RawPointerEventArgsRaw pointer event args associated with the pointer.
Returns
- IPointer
The pointer.
Remarks
If pointer doesn't exist or wasn't yet created this method will return null.