registerOnTwoTouches method

void registerOnTwoTouches(
  1. TouchCallback? twoTouchCallback
)

Two pointers touch event.

A two pointers touch event is defined as two simultaneous touches from which the pointer ups are within a preset time in milliseconds.

Parameters

  • IN pos is the mid position of the segment determined by the two pointer positions

Implementation

void registerOnTwoTouches(final TouchCallback? twoTouchCallback) {
  _touchTwoCallback = twoTouchCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onTwoTouches',
    twoTouchCallback == null,
  );
}