How to check if there is no input from keyboard or mouse for a period of time in C#
<p>I am trying to write a line of code that checks if there is no input from keyboard and mouse and no change in the mouse position over a period of one minute. If this condition is true then trigger an event:</p>

<pre><code>if ((no_Keyboard_input) &amp;&amp; (no_mouse_input) &amp;&amp; (no_change_in_mousePosition))
{
    start_timer;
    if (time_elapsed == 1 min)
    {
         playAnimation;
    }
}
</code></pre>
