menu
GamepadButton
import { GamepadButton } from "destack:input/binding";
Gamepad button state.
1export struct GamepadButton {2 isPressed: boolean;3 isTouched: boolean;4 value: float64;5}Members
isPressed: booleanWhether the button is currently pressed.
isTouched: booleanWhether the button is currently touched.
value: float64Analog button value in the normalized range
[0, 1].