Skip to content

Commit

Permalink
xrEngine/xr_input.cpp: fix mixed up argument when showing cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 8, 2025
1 parent cfbfa25 commit 461be18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrEngine/xr_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ bool CInput::iSetMousePos(const Ivector2& p, bool global /*= false*/) const
void CInput::GrabInput(const bool grab)
{
// Self descriptive
ShowCursor(grab);
ShowCursor(!grab);

// Clip cursor to the current window
// If SDL_HINT_GRAB_KEYBOARD is set then the keyboard will be grabbed too
Expand All @@ -632,7 +632,7 @@ bool CInput::InputIsGrabbed() const

void CInput::ShowCursor(const bool show)
{
SDL_ShowCursor(show ? SDL_FALSE : SDL_TRUE);
SDL_ShowCursor(show ? SDL_TRUE : SDL_FALSE);
}

void CInput::SetCursor(const SDL_SystemCursor cursor)
Expand Down

0 comments on commit 461be18

Please sign in to comment.