indexOfFirstPressed

Returns the index of first button pressed as used in [isPressed] or `-1` if no button is pressed.

indexOfFirstPressed

Function

Common
expect fun PointerButtons.indexOfFirstPressed(): Int

Returns the index of first button pressed as used in isPressed or -1 if no button is pressed.

Android
actual fun PointerButtons.indexOfFirstPressed(): Int