Grab mouse using OpenGL

Please explain what you mean by grab

Essentially look at screenX in the reference