GetAxisSensitivity

float GetAxisSensitivity(string description)
float GetAxisSensitivity(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 sensitivity value for the axis.

Description

Returns the sensitivity value for the axis. You can change this value with SetAxisSensitivity().

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

Example

// gets the sensitivity value of a previously defined axis float hSensitivity = cInput.GetAxisSensitivity("Horizontal Movement");

results matching ""

    No results matching ""