Example #1
0
 /**
  * Returns the event information of the last mouse event.
  *
  * <p>Always returns null if the mouse event mechanism is off.
  *
  * <p>The <code>waitKeyPressed()</code> and <code>getKeyPressed()</code> return <code>MOUSE_EVENT
  * </code> (-3) when there is no key but there is a mouse event.
  *
  * @return The event information of the last mouse event or <code>null</code> if no events.
  * @see #enableMouseEvents(boolean)
  * @see #disableMouseEvents()
  * @see #getMouseEvent(int)
  * @see #waitKeyPressed(long)
  * @see #getKeyPressed()
  */
 public static MouseEvent getMouseEvent() {
   return frame.getMouseEvent();
 }