GetAxisDeadzone

float GetAxisDeadzone(string description)
float GetAxisDeadzone(int descriptionHash)

Parameters

description: The name of the axis, as defined in SetAxis().
descriptionHash: The hashcode of the name of the axis, as defined in SetAxis().

Returns

float: The deadzone value for the axis.

Description

Returns the deadzone value for the axis. You can change this value with SetAxisDeadzone().

This is provided as a way to present the player with a UI to display and change the deadzone settings.

Example

// gets the deadzone value for a previously define axis float hDeadzone = cInput.GetAxisDeadzone("Horizontal Movement");

results matching ""

    No results matching ""