Does anybody know of a way to determine if the mouse has been moved even when the application that is checking mouse movement is minimized.

i.e. a program that determines when the mouse has been moved when the user is using another program?