code: function onPointerEvent(e)  {
          // normalize eventTypes
          normalizeEvent(e);
  
          // remember/use the first "primary" normalized event for pointer.bind
          var button = normalizedEvents[0].button;
  
          // dispatch event to registered objects
          if (dispatchEvent(normalizedEvents) || e.type === "wheel") {
              // always preventDefault for wheel event (?legacy code/behavior?)
              if (api.preventDefault === true) {
                  e.preventDefault();
              }
          }
  
          var keycode = api.pointer.bind[button];
  
          // check if mapped to a key
          if (keycode) {
              me.input.triggerKeyEvent(keycode, POINTER_DOWN.includes(e.type), button + 1)
          }
      }
docs: mouse/touch/pointer event management (start/down, end/up)
  @ignore