Skip to main content
ButtonState = object
Defined in: modules/input/src/shared/button-state.ts:8 State of a digital button for the current frame.

Remarks

justPressed / justReleased are true only on the frame where the transition happened.

Properties

justPressed

justPressed: boolean
Defined in: modules/input/src/shared/button-state.ts:12 true on the frame the button went down.

justReleased

justReleased: boolean
Defined in: modules/input/src/shared/button-state.ts:14 true on the frame the button went up.

pressed

pressed: boolean
Defined in: modules/input/src/shared/button-state.ts:10 true while the button is held.