- Home /
Mouse scroll wheel stops being detected in Windows at random.
Dozens of our users have reported an issue where, when running our game on Windows, the game stops detecting mouse scroll wheel input. This is solved by restarting the application completely. Other forms of mouse input continue working as expected.
This is NOT a script error, where the input is being received but not processed. I even wrote a specific debug function for users who have encountered this issue, in a debug GameObject's Update() loop. This is all it does:
float mouseAxis = Input.GetAxis("Mouse ScrollWheel");
if (mouseAxis != 0)
{
GameLogScript.GameLogWrite(mouseAxis.ToString(), GameMasterScript.heroPCActor);
}
When the scroll wheel is behaving correctly, the game log will print expected messages like "1000" or "-1000" based on wheel direction each frame.
When this issue happens to the users, nothing is printed.
For emphasis, the mouse cursor is still visible in the game window, and the game responds to other mouse input!
Your answer
Follow this Question
Related Questions
Unity sometimes misses Mouse Button Release 1 Answer
Mouse # is not setup - it really is though, I promise... version 2019.3.0ff6 0 Answers
Issues with mouse input when locking the cursor 0 Answers
Check if mouse is down while in Edit Mode 1 Answer
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers