Skip to content

Commit

Permalink
Switch to KeyboardMouse input type only when keyboard was used
Browse files Browse the repository at this point in the history
Mouse events won't trigger the switch and UI reaction (displaying
different keybindings tips) now.
Sometimes you may want to use the mouse without using the keyboard and
keeping to use controller. In this case, UI reaction can be annoying. It
will be more pleasant after this commit.
  • Loading branch information
Xottab-DUTY committed Jan 8, 2025
1 parent d254cc5 commit 2feb9da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/xrEngine/xr_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ void CInput::MouseUpdate()
const auto count = SDL_PeepEvents(events, MAX_MOUSE_EVENTS,
SDL_GETEVENT, SDL_MOUSEMOTION, SDL_MOUSEWHEEL);

if (count)
SetCurrentInputType(KeyboardMouse);

for (int i = 0; i < count; ++i)
{
const SDL_Event& event = events[i];
Expand Down

0 comments on commit 2feb9da

Please sign in to comment.