Mouse position network code