It was suggested that we may also want to call actions for when inputs reach their max/min values or have a specific value.
For example the Xbox Dpad outputs a single Vector 2 value, where as Users want to be able to assign different actions based on the Dpad up / DPad down / etc
This however translate differently based on what the input is, so the user might want a different action for the directions on a touchpad, e.g. N / NW / W / SW / S / SE / E / NE
Currently this is only way to process the directions is in the handler, as shown below.
public void OnPositionInputChanged(InputEventData<Vector2> eventData)
{
if(eventData.InputData.x == 1)
{
// Right Press
}
if(eventData.InputData.x == -1)
{
// Left Press
}
if(eventData.InputData.y == 1)
{
// Up Press
}
if(eventData.InputData.y == -1)
{
// Down Press
}
}
Ideally, there should be an editor configuration screen to be able to add the ability to configure these translations / re-directions of input actions
Updated Task to be a little more generic. Aim is to provide a "Helper" editor component for users who "don't code", but want a way to generate new actions based on an existing input actions value
Revised task based of (post)shiproom discussions on the implementation.
Most helpful comment
Updated Task to be a little more generic. Aim is to provide a "Helper" editor component for users who "don't code", but want a way to generate new actions based on an existing input actions value