getDebounced

open fun getDebounced(button: Controls): Boolean

Check if a button is currently pressed on a gamepad, with debounce to ignore a press that was already detected upon the first call of this function and button. This is also known as "rising edge detection".

Return

True if the button is pressed and not debounced

Parameters

button

The button to check