InputMgr::SetMouseSensitivity
Defined in:
Sets the global mouse sensitivity.
C4Input.h
Prototype
void SetMouseSensitivity(int32 sensitivity);
Parameters
sensitivity |
The new mouse sensitivity. |
Description
The SetMouseSensitivity
function sets the global mouse sensitivity. This value is used as a multiplier for the raw mouse movement, and it is applied to the values returned by the InputMgr::GetMouseDeltaX
and InputMgr::GetMouseDeltaY
functions. The default value of the sensitivity is 15.To change the value of the mouse sensitivity persistently over multiple runs of the engine, change the value of the
sensitivity
system variable as follows.
TheEngine->GetVariable("sensitivity")->SetIntegerValue(sensitivity);
See Also