We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ae69c commit 9cb35b4Copy full SHA for 9cb35b4
src/xrGame/UICursor.cpp
@@ -4,6 +4,7 @@
4
#include "ui/UIStatic.h"
5
#include "ui/UIBtnHint.h"
6
#include "xrEngine/IInputReceiver.h"
7
+#include "xrEngine/xr_input.h"
8
9
#define C_DEFAULT D3DCOLOR_XRGB(0xff,0xff,0xff)
10
@@ -113,6 +114,8 @@ void CUICursor::UpdateCursorPosition(int _dx, int _dy)
113
114
}
115
clamp (vPos.x, 0.f, UI_BASE_WIDTH);
116
clamp (vPos.y, 0.f, UI_BASE_HEIGHT);
117
+ if (m_b_use_win_cursor && pInput->get_exclusive_mode())
118
+ SetUICursorPosition(vPos);
119
120
121
void CUICursor::SetUICursorPosition(Fvector2 pos)
0 commit comments