Added input functions to get mouse pos