I am creating a C# WinForm application and I want to detect mouse movement when the mouse is outside the form.
I already tried to create new thread that continually calculates the mouse coordinates, it work well as a job, but it uses while(true)
. It's really inefficient for CPU.
it work well as a job but it uses 'while(true)' so it's really inefficient for CPU
it seems you are asking for a review and or other suggestions. If that's the case, head over to Code Review as that place would be best. – Codexer Nov 14 '19 at 18:01