Add "pause mouse" support.
Revise "pause mouse" handling on Windows.
Rename variable "basename"