usePointerEvent
A Hook unifies TouchEvent and MouseEvent into PointerEvent, to help with handling pointer events in a cross-platform manner.
Usage
Type Declarations
Callback prefixes map to event binding modes:
onPointerDown->bindmousedownandbindtouchstartcatchPointerDown->catchmousedownandcatchtouchstartcaptureBindPointerDown->capture-bindmousedownandcapture-bindtouchstartcaptureCatchPointerDown->capture-catchmousedownandcapture-catchtouchstart
Append MT to use the main-thread variants, for example captureCatchPointerDownMT maps to main-thread:capture-catchmousedown and main-thread:capture-catchtouchstart.