isJustPressed
Returns true if button went down this frame on any connected gamepad of the list. An empty list gives false. Inside Phase.FIXED_UPDATE it answers for fixed steps, as Gamepad.isJustPressed does.
Samples live in the sandbox because they need a display.