getKindForPointer method

  1. @protected
PointerDeviceKind getKindForPointer (
  1. int pointer
)
@protected

For a given pointer ID, returns the device kind associated with it.

The pointer ID is expected to be a valid one i.e. an event was received with that pointer ID.

Implementation

@protected
PointerDeviceKind getKindForPointer(int pointer) {
  assert(_pointerToKind.containsKey(pointer));
  return _pointerToKind[pointer];
}