Fixes the offscreen rendering using FBOs and adds the support of more mouse buttons