Add Dead Zone to virtual input action for better usage with gamepad sticks/triggers
#3660
This commit is contained in:
@@ -48,6 +48,12 @@ API_STRUCT() struct ActionConfig
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="EditorOrder(40)")
|
||||
InputGamepadIndex Gamepad;
|
||||
|
||||
/// <summary>
|
||||
/// Threshold for non-binary value inputs such as gamepad stick position to decide if action was triggered. Can be sued to activate action only if input value is higher than specified number.
|
||||
/// </summary>
|
||||
API_FIELD(Attributes = "EditorOrder(50)")
|
||||
float DeadZone = 0.5f;
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user