Skip to content

Commit 135a531

Browse files
author
Pavel Kovalenko
committed
Revert "Clip cursor in windowed mode with enabled input capture."
Found side effect related to float rounding, need to provide better solution or leave it as is. This reverts commit 9cb35b4.
1 parent 9665387 commit 135a531

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/xrGame/UICursor.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "ui/UIStatic.h"
55
#include "ui/UIBtnHint.h"
66
#include "xrEngine/IInputReceiver.h"
7-
#include "xrEngine/xr_input.h"
87

98
#define C_DEFAULT D3DCOLOR_XRGB(0xff,0xff,0xff)
109

@@ -114,8 +113,6 @@ void CUICursor::UpdateCursorPosition(int _dx, int _dy)
114113
}
115114
clamp (vPos.x, 0.f, UI_BASE_WIDTH);
116115
clamp (vPos.y, 0.f, UI_BASE_HEIGHT);
117-
if (m_b_use_win_cursor && pInput->get_exclusive_mode())
118-
SetUICursorPosition(vPos);
119116
}
120117

121118
void CUICursor::SetUICursorPosition(Fvector2 pos)

0 commit comments

Comments
 (0)