C4 Engine
C4 Engine API Documentation

InputMgr::SetMouseSensitivity

Defined in:  C4Input.h
Sets the global mouse sensitivity.
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

InputMgr::GetMouseSensitivity

InputMgr::GetMouseFlags

InputMgr::SetMouseFlags

InputMgr::GetMouseDeltaX

InputMgr::GetMouseDeltaY