Function

isPressed

Returns true when the button at buttonIndex is pressed and false when it isn't pressed.

isPressed

Source set: Common
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.

isPressed

Source set: Android
actual fun PointerButtons.isPressed(buttonIndex: Int): Boolean

Last updated: