Updating the mouse state BeforeRun()  This is called by RunOneFrame() as well as by the runloop just one.