Scratch for Java

ExtensionContext::onInputPoll()

Browser availability: desktop-only.

This API requires the desktop runtime. Browser declarations may report the limitation without performing the operation.

Once per batch of ticks, on the window thread (the one that started GLFW): poll devices into the snapshot. GLFW polling functions only; setting GLFW callbacks is not allowed.

Syntax

Java

.onInputPoll(hook)

Parameters

Name Data Type Description
hook Consumer<InputSnapshot>

Return

void

onInputPoll()

Create Shareable URL

Select Sections