InputMgr::SetMouseFlags
Defined in:
Sets the mouse input flags.
C4Input.h
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. |
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);
TheEngine->GetVariable("smoothMouse")->SetIntegerValue(smooth);
See Also