collect mouse events in gl context