# MouseButton

Artifact: [androidx.compose.ui:ui-test](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/test/Mouse.+class:androidx.compose.ui.test.MouseButton) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0) Common/AllAndroid/JVM
- Cmn

  ```
  value class MouseButton
  ```

*** ** * ** ***

Representation of a mouse button with its associated `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/MouseButton#buttonId()` for the current platform.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/MouseButton` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/MouseButton#Primary()` The primary mouse button. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/MouseButton` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/MouseButton#Secondary()` The secondary mouse button. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/MouseButton` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/MouseButton#Tertiary()` The tertiary mouse button. | Cmn android |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/MouseButton#MouseButton(kotlin.Int)(buttonId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | Cmn android |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/MouseButton#buttonId()` | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/test/MouseButton#buttonId()` | Cmn |

## Public companion properties

### Primary

Cmn android Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val Primary: MouseButton
```

The primary mouse button. Typically the left mouse button.

### Secondary

Cmn android Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val Secondary: MouseButton
```

The secondary mouse button. Typically the right mouse button.

### Tertiary

Cmn android Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val Tertiary: MouseButton
```

The tertiary mouse button. Typically the middle mouse button.

## Public constructors

### MouseButton

Cmn android Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.2.0)

```
MouseButton(buttonId: Int)
```

## Public properties

### buttonId

android Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val buttonId: Int
```

### buttonId

Cmn Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
val buttonId: Int
```