Mouse

final class Mouse(mouseEvents: List[MouseEvent], val position: Point, val leftMouseIsDown: Boolean, val buttonsDown: Set[MouseButton])
Companion:
object
class Object
trait Matchable
class Any

Value members

Constructors

def this(mouseEvents: List[MouseEvent], position: Point, leftMouseIsDown: Boolean)

Concrete methods

def isButtonDown(button: MouseButton): Boolean
def pressed(button: MouseButton): Boolean
def released(button: MouseButton): Boolean
def wasDownAt(position: Point, button: MouseButton): Boolean
def wasDownAt(x: Int, y: Int, button: MouseButton): Boolean
def wasDownWithin(bounds: Rectangle, button: MouseButton): Boolean
def wasDownWithin(x: Int, y: Int, width: Int, height: Int, button: MouseButton): Boolean
def wasMouseClickedAt(position: Point): Boolean
def wasMouseClickedAt(x: Int, y: Int): Boolean
def wasMouseClickedWithin(bounds: Rectangle): Boolean
def wasMouseClickedWithin(x: Int, y: Int, width: Int, height: Int): Boolean
def wasMouseDownAt(position: Point): Boolean
def wasMouseDownAt(x: Int, y: Int): Boolean
def wasMouseDownWithin(bounds: Rectangle): Boolean
def wasMouseDownWithin(x: Int, y: Int, width: Int, height: Int): Boolean
def wasMousePositionAt(target: Point): Boolean
def wasMousePositionAt(x: Int, y: Int): Boolean
def wasMousePositionWithin(bounds: Rectangle): Boolean
def wasMousePositionWithin(x: Int, y: Int, width: Int, height: Int): Boolean
def wasMouseUpAt(position: Point): Boolean
def wasMouseUpAt(x: Int, y: Int): Boolean
def wasMouseUpWithin(bounds: Rectangle): Boolean
def wasMouseUpWithin(x: Int, y: Int, width: Int, height: Int): Boolean
def wasUpAt(position: Point, button: MouseButton): Boolean
def wasUpAt(x: Int, y: Int, button: MouseButton): Boolean
def wasUpWithin(bounds: Rectangle, button: MouseButton): Boolean
def wasUpWithin(x: Int, y: Int, width: Int, height: Int, button: MouseButton): Boolean

Concrete fields

lazy val isLeftDown: Boolean
lazy val isRightDown: Boolean
lazy val mouseClickAt: Option[Point]
lazy val mouseClicked: Boolean
lazy val mouseDownAt: Option[Point]
lazy val mousePressed: Boolean
lazy val mouseReleased: Boolean
lazy val mouseUpAt: Option[Point]
lazy val scrolled: Option[MouseWheel]

Deprecated fields

@deprecated("use `isButtonDown` function instead of this value", "0.12.0")
val leftMouseIsDown: Boolean
Deprecated