Scratch for Java

Gamepad::isButtonPressed()

Whether any controller has the button down.

Syntax

Java

.isButtonPressed(button)
.isButtonPressed(player, button)

Parameters

Name Data Type Description
button GamepadButton the button to ask about
player int the player, 1 to 4

Return

boolean

isButtonPressed()

Create Shareable URL

Select Sections