GetControlValueNormalized

From GT-MP
Jump to: navigation, search
GetControlValueNormalized
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Gets an analog value of a control input between -1.0f and 1.0f.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

In Javascript
Client-Side Function

API.getControlValueNormalized(int control);

Required Arguments

  • control parameter input should be in int type. See Game Controls.


NOTE: This function returns data in float type.

Usage example

In Javascript
Client-Side Function

API.getControlValueNormalized(int control);

References