code: private static Point getCursorLocation()
      {
          try
          {
              final PointerInfo a = MouseInfo.getPointerInfo();
              final java.awt.Point b = a.getLocation();
              return new Point((int) b.getX(), (int) b.getY());
          }
          catch (final HeadlessException exception)
          {
              Verbose.exception(exception);
              return new Point();
          }
      }
docs: Get the buttons number.
  
  @return The buttons number.