Previous commit was wrong. Added mouse functionality, optimized performance, OpenGL interoperability