Scratch for Java

Actions::bind()

Binds keys to an action, in addition to what it is bound to already.

Syntax

Java

.bind(action, keys)
.bind(action, buttons)
.bind(action, buttons)
.bind(action, axes)

Parameters

Name Data Type Description
action String the action's name, e.g. "jump"
keys KeyCode[] the keys
buttons MouseCode[] the mouse buttons
axes GamepadAxis[] the stick directions or triggers, on any player's controller

Return

void

bind()

Create Shareable URL

Select Sections