Why no ReadValueAsButton on InputAction?

it seems only CallbackContext has a method ReadValueAsButton, and takes the State from the InputAction to determine the button value.

maybe there’s a technical reason why. But sure would be nice to have that method on InputAction, so I can call it when polling the action

An improved polling API for InputAction is in the works. We hope to have it in 1.1. There are indeed some technical problems to deal with but we’re working on having IsPressed (that’d be the equivalent of ReadValueAsButton), WasPressedThisFrame, and WasReleasedThisFrame on InputAction. The current polling API indeed leaves things to be desired there.

1 Like

That would be awesome, thanks