Class: GamePad
Lua
C++
Edit

GamePad:ButtonHit

This method detects whether a gamepad button is currently pressed.

Syntax

Parameter Description
button gamepad button ID from the list below

Returns

Returns true if the button has pressed since the last call to this method, otherwise false is returned.

Remarks

The following button constants can be used:

Copyright © 2024 Ultra Software.
All rights reserved.