Class: GamePad
Lua
C++
Edit

GamePad::ButtonHit

This method detects whether a gamepad button has been pressed since the last time it was checked.

Syntax

Parameter Description
button gamepad button ID from the list below

Returns

Returns true if the button has been pressed or false if it has not.

Remarks

The following button constants can be used:

Copyright © 2024 Ultra Software.
All rights reserved.