Pointer Class
Directly using the Pointer
class is not advised. For all typical UI controls you should iuse the Gestures system. The gesture system is better able to deal with conflict between gestures.
Captures
A capture indicates some listener is interested in receiving events for a pointer event even if they no longer hit the target visual. Any capture blocks events from being sent outside of the tree starting at the provided visual.
An identity
is used to identify the capture listener. Each identity has only one capture. This may be at different levels, or involve single or multiple pointer indexes. Multiple captures with the same identity
can not be created -- it always modifies the existing one.
Only one CaptureType.Hard
can exist for a PointIndex
at one time. This will also cancel all soft captures that also accept that point (even if it isn't the only point they accept). An exception is those with NodeShare
.
Location
- Namespace
- Fuse.Input
- Package
- Fuse.Nodes 2.9.1
Interface of Pointer
Coord : float2 uno
Coords : float2[] uno
Entered : VisualEvent<PointerEnteredHandler (object, PointerEnteredArgs), PointerEnteredArgs> uno
EventResponder : IPointerEventResponder ux
ExtendCapture(object, int) : bool uno
Adds more points to an existing capture. All the points will be captured in the same fashion as the original capture (such as Hard or Soft).
IsCaptured(CaptureType, int, object) : bool uno
IsCaptured(int, object) : bool uno
IsPressed : bool uno
IsPressed(int) : bool uno
Left : VisualEvent<PointerLeftHandler (object, PointerLeftArgs), PointerLeftArgs> uno
ModifyCapture(object, CaptureType) : bool uno
Modifies the type of an existing capture.
ModifyCapture(object, Visual, Action, CaptureType, int) : bool uno
Only one capture per identity is allowed. If an existing capture is overridden the previous lostCallback will not be called.