C4 Engine
C4 Engine API Documentation

InputMgr::SetMouseFlags

Defined in:  C4Input.h
Sets the mouse input flags.
Prototype

void SetMouseFlags(uint32 flags);

Parameters
flags The new mouse flags.
Description
The SetMouseFlags function sets the mouse input flags to the value specified by the flags parameter, which can be a combination (through logical OR) of the following constants.
kMouseInverted Movement along the vertical axis of the mouse is negated.
kMouseSmooth Mouse movements are smoothed over multiple input events.
The default value of the mouse flags is kMouseSmooth.

To change the value of the mouse flags persistently over multiple runs of the engine, change the values of the invertMouse and smoothMouse system variables as follows.
TheEngine->GetVariable("invertMouse")->SetIntegerValue(invert);
TheEngine->GetVariable("smoothMouse")->SetIntegerValue(smooth);
See Also

InputMgr::GetMouseFlags

InputMgr::GetMouseSensitivity

InputMgr::SetMouseSensitivity

InputMgr::GetMouseDeltaX

InputMgr::GetMouseDeltaY