getMouseOnScreen method

dynamic getMouseOnScreen(
  1. dynamic pageX,
  2. dynamic pageY
)

Implementation

getMouseOnScreen(pageX, pageY) {
  vector.set((pageX - scope.screen['left']) / scope.screen['width'],
      (pageY - scope.screen['top']) / scope.screen['height']);

  return vector;
}