Functions to set mouse pos and to hide the cursor.