Scratch for Java

GamepadListener::whenGamepadButtonPressed()

A button went down on one of the controllers.

Syntax

Java

.whenGamepadButtonPressed(button)

Parameters

Name Data Type Description
button GamepadButton the button that was pressed

Return

void

whenGamepadButtonPressed()

Create Shareable URL

Select Sections