Replace cursor hide script

Existing script didn't work for Yabause, replaced with a version copied
from:
http://www.hyperspin-fe.com/forum/showthread.php?4902