Remove unused file.
Don't load debug module.
Make sure mouse resting position is sent.
Make code easier to read.
Make code easier to read again.
Make code easier to read yet again.
Print more meaningful console messages.