EventMouseClick

class EventMouseClick : IncomingGameMessage

Mouse click messages are sent whenever the user clicks with the right or left mouse button, and if the "Middle mouse button controls camera" is disabled, middle buttons (the scroll wheel itself).

Constructors

Link copied to clipboard
constructor(lastTransmittedMouseClick: Int, rightClick: Boolean, x: Int, y: Int)

Properties

Link copied to clipboard
open override val category: ClientProtCategory
Link copied to clipboard

how many milliseconds since the last mouse click event was transmitted

Link copied to clipboard

whether a right mouse click was performed, or left/middle. There is no distinction between left and middle transmitted to the server.

Link copied to clipboard
val x: Int

the x coordinate clicked, always a positive integer, capped to the client frame width.

Link copied to clipboard
val y: Int

the y coordinate clicked, always a positive integer, capped to the client frame height.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String