Skip to main content

GamePadButton

Complete API reference for GamePadButton, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Input

Component: no


public class GamePadButton

Constructors

SignatureDescription
GamePadButton(GamePadButton)Executes GamePadButton and returns after the underlying engine call finishes.
GamePadButton()Executes GamePadButton and returns after the underlying engine call finishes.

Attributes

NameTypeDescription
gamePadButtonGamePadButtonRepresents the gamePadButton value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
downbooleanget/setChecks whether the button was just pressed. This returns true only on the first frame it was pressed.
longDownbooleanget/setChecks whether the button was just long-pressed. This returns true only on the first frame it was long-pressed.
longPressedbooleanget/setChecks whether the button is being long-pressed. This returns true on every frame while it remains pressed for a long duration.
pressedbooleanget/setChecks whether the button is currently being held down. This returns true on every frame while it remains pressed.