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.
| 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. |