float GetAxisRaw(string description)
float GetAxisRaw(int descriptionHash)
float: A value between
Returns the value of the virtual axis identified by
descriptionHash with no smoothing applied. In other words,
gravity have no effect on this value.
The value will be in the range
-1...1 for an axis made from analog (e.g., joysticks or gamepad triggers) inputs. Since input is not smoothed, an axis made from digital inputs (e.g., keyboard or gamepad buttons) will always be either
This is useful if you want to get the value of an axis before
gravity smoothing is applied to it.