MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetRelativeMode

Function SetRelativeMode

Source/Engine/Input/Mouse.h:142–145  ·  view source on GitHub ↗

Sets the mouse relative mode state. While enabled, the mouse movement tracking becomes more accurate. The cursor will be hidden while in relative mode. The new relative mode state. The window.

Source from the content-addressed store, hash-verified

140 /// <param name="relativeMode">The new relative mode state.</param>
141 /// <param name="window">The window.</param>
142 virtual void SetRelativeMode(bool relativeMode, Window* window)
143 {
144 _relativeMode = relativeMode;
145 }
146
147 /// <summary>
148 /// Called when mouse cursor gets moved by the application. Invalidates the previous cached mouse position to prevent mouse jitter when locking the cursor programmatically.

Callers 1

SetRelativeModeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected