Mouse

indigo.shared.input.Mouse
See theMouse companion object
final class Mouse(mouseEvents: Batch[MouseEvent], val position: Point, val leftMouseIsDown: Boolean, val buttonsDown: Set[MouseButton])

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Constructors

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

Concrete methods

def isButtonDown(button: MouseButton): Boolean
def maybeDownAtPositionWith(button: MouseButton): Option[Point]
def maybeUpAtPositionWith(button: MouseButton): Option[Point]
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

val leftMouseIsDown: Boolean

Attributes

Deprecated
true