<div class='type'>Function</div>


<a id='references'></a>


<h2 id="ispressed-buttonindex">isPressed</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
expect fun PointerButtons.isPressed(buttonIndex: Int): Boolean
```


Returns `true` when the button at `buttonIndex` is pressed and `false` when it isn't pressed.
This method can handle buttons that haven't been assigned a designated purpose like
`isPrimaryPressed` and `isSecondaryPressed`.





<hr class="docs-overload-divider">


<h2 id="ispressed-buttonindex-2">isPressed</h2>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
actual fun PointerButtons.isPressed(buttonIndex: Int): Boolean
```