Class MouseEvent

java.lang.Object
eu.svjatoslav.sixth.e3d.gui.humaninput.MouseEvent

public class MouseEvent extends Object
Represents mouse event.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    0 - mouse over (no button pressed) 1 - left mouse button 2 - middle mouse button 3 - right mouse button
    Mouse coordinate in screen space (pixels) relative to top left corner of the screen when mouse button was clicked.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • coordinate

      public Point2D coordinate
      Mouse coordinate in screen space (pixels) relative to top left corner of the screen when mouse button was clicked.
    • button

      public int button
       0 - mouse over (no button pressed)
       1 - left mouse button
       2 - middle mouse button
       3 - right mouse button
       
  • Method Details