Add mouse input handling functions