Mouse haven't been moved for x amount of time?

How to check if a players mouse hasn’t been moved for x amount of seconds? This is not for a panel.

Psuedo code



lastMove = CurTime()

function think()
    if lastMove+delay < CurTime() then
        --kick or whatever
    end
end

function mousemoved()
    lastMove = CurTime()
end


And to check if the player has moved his mouse check his EyeAngles

You could hook to Think and use **[Gui.MousePos

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Gui.MousePos)** to check if it moves on the screen as well.