MouseButton

Class

Common
expect value class MouseButton(val buttonId: Int)

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

Companion Object

Properties

Common
val Primary: MouseButton

The primary mouse button. Typically the left mouse button.

Common
val Secondary: MouseButton

The secondary mouse button. Typically the right mouse button.

Common
val Tertiary: MouseButton

The tertiary mouse button. Typically the middle mouse button.

Android
actual value class MouseButton(val buttonId: Int)

Companion Object

Properties

Android
actual val Primary = MouseButton(MotionEvent.BUTTON_PRIMARY)

The left mouse button

Android
actual val Secondary = MouseButton(MotionEvent.BUTTON_SECONDARY)

The right mouse button

Android
actual val Tertiary = MouseButton(MotionEvent.BUTTON_TERTIARY)

The middle mouse button