MouseButtonPressed

sfml.window.Event.MouseButtonPressed
See theMouseButtonPressed companion object
final case class MouseButtonPressed(button: Button, position: Vector2[Int])

Mouse button pressed event subtype.

Value parameters

button

Code of the button that has been pressed.

position

Position of the mouse pointer, relative to the top left of the owner window.

Attributes

Companion
object

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product