I need to detect if the user is scrolling the mouse scroll down.
I tried with GetKeyState
, but it seems that there is no way to scroll the mouse scroll.
I also found this , but not I could understand how to use it in C #.
Code:
if (/* Aqui eu devo checar se o usuário está rolando o scroll */)
{
Stopwatch s = new Stopwatch();
s.Start();
while (s.Elapsed < TimeSpan.FromMilliseconds(300))
{
//Irrelevante
}
s.Stop();
}
I also found this , but I have no idea how to use it in a console application.