SetAxisDeadzone

void SetAxisDeadzone(string axisName, float deadzone)
void SetAxisDeadzone(int axisHash, float deadzone)

Parameters

axisName: The name of the axis you want to change the deadzone value for.
axisHash: The hashcode of the name of the axis you want to change the deadzone value for.
deadzone: The value to assign as the deadzone.

Description

Sets the deadzone for the axis. This will override cInput's global deadzone value.

This value can also be set during the initial axis creation using SetAxis().

Example

// sets the deadzone for a previously defined axis cInput.SetAxisDeadzone("Horizontal Movement", 0.1f);

results matching ""

    No results matching ""