Skip to content

Commit

Permalink
Revert "Clip cursor in windowed mode with enabled input capture."
Browse files Browse the repository at this point in the history
Found side effect related to float rounding, need to provide better solution
or leave it as is.
This reverts commit 9cb35b4.
  • Loading branch information
Pavel Kovalenko committed Oct 13, 2014
1 parent 9665387 commit 135a531
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/xrGame/UICursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "ui/UIStatic.h"
#include "ui/UIBtnHint.h"
#include "xrEngine/IInputReceiver.h"
#include "xrEngine/xr_input.h"

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

Expand Down Expand Up @@ -114,8 +113,6 @@ void CUICursor::UpdateCursorPosition(int _dx, int _dy)
}
clamp (vPos.x, 0.f, UI_BASE_WIDTH);
clamp (vPos.y, 0.f, UI_BASE_HEIGHT);
if (m_b_use_win_cursor && pInput->get_exclusive_mode())
SetUICursorPosition(vPos);
}

void CUICursor::SetUICursorPosition(Fvector2 pos)
Expand Down

0 comments on commit 135a531

Please sign in to comment.