touchDown method

bool touchDown(
  1. int index
)

Checks if the finger with the specified index us currently touching the touchscreen.

Implementation

bool touchDown(int index) {
  if (index < 0 || index >= _touchState.length) {
    return false;
  }
  return _touchState[index].down;
}