MouseButton

value class MouseButton(val index: Int)(source)

A mouse button, numbered from zero: LEFT is 0 and X2 is 4.

Every button EventPump reports has an index below COUNT, so button state can live in a flat array indexed by index.

Constructors

Link copied to clipboard
constructor(index: Int)

Types

Link copied to clipboard
object Companion

Holds the mouse buttons.

Properties

Link copied to clipboard
val index: Int

Functions

Link copied to clipboard
open override fun toString(): String