BugfixedHL-Rebased icon indicating copy to clipboard operation
BugfixedHL-Rebased copied to clipboard

Mouse stops working when switching from Raw Input to DirectInput

Open tmp64 opened this issue 5 years ago • 0 comments

Windows only. Reproduction steps:

  1. Start the game, m_input 1 (DirectInput) and connect to the server. Verify the mouse is working.
  2. m_input 2 (Raw Input), verify the mouse is still working
  3. m_input 1 (DirectInput). Mouse will stop working.

Interestingly, hitting a breakpoint in the debugger will "unbug" the mouse. Probably related to how engine sets up the mouse when m_rawinput is enabled.

For now, a warning was added.

] m_input 2
Set mouse input mode to Raw Input.
] m_input 1
Set mouse input mode to DirectInput.
Warning: you may need to restart the game.
] version
Protocol version 48
Exe version 1.1.2.2/Stdio (valve)
Exe build: 15:17:55 Jul 24 2019 (8308)

tmp64 avatar Sep 04 '20 14:09 tmp64