BugfixedHL-Rebased
BugfixedHL-Rebased copied to clipboard
Mouse stops working when switching from Raw Input to DirectInput
Windows only. Reproduction steps:
- Start the game,
m_input 1(DirectInput) and connect to the server. Verify the mouse is working. -
m_input 2(Raw Input), verify the mouse is still working -
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)