Class

MouseButton

Representation of a mouse button with its associated [ID]buttonId for the current platform.

Source set: Common

Added in 1.11.0-rc01

expect value class MouseButton(val buttonId: Int)

Representation of a mouse button with its associated ID for the current platform.

Companion Object

Properties

Source set: Common

Added in 1.11.0-rc01

val Primary: MouseButton

The primary mouse button. Typically the left mouse button.

Source set: Common

Added in 1.11.0-rc01

val Secondary: MouseButton

The secondary mouse button. Typically the right mouse button.

Source set: Common

Added in 1.11.0-rc01

val Tertiary: MouseButton

The tertiary mouse button. Typically the middle mouse button.

Source set: Android

Added in 1.11.0-rc01

actual value class MouseButton(val buttonId: Int)

Companion Object

Properties

Source set: Android

Added in 1.11.0-rc01

actual val Primary = MouseButton(MotionEvent.BUTTON_PRIMARY)

The left mouse button

Source set: Android

Added in 1.11.0-rc01

actual val Secondary = MouseButton(MotionEvent.BUTTON_SECONDARY)

The right mouse button

Source set: Android

Added in 1.11.0-rc01

actual val Tertiary = MouseButton(MotionEvent.BUTTON_TERTIARY)

The middle mouse button