Added callbacks to track the mouse scrollwheel,
  and the window focus.