C++ OpenGL trouble trapping cursor in window

Posted by ezio160324 on Game Development See other posts from Game Development or by ezio160324
Published on 2014-08-23T03:11:16Z Indexed on 2014/08/23 4:28 UTC
Read the original article Hit count: 142

Filed under:

I am using OpenGL and I try to trap my cursor inside my game window (using both SetCursorPos and ClipCursor)

But, these conflict with my camera rotation code as my camera is rotated with my mouse. If there is a way to do it, please let me know. If possible, I would be willing to make it so that when the cursor reaches an edge of the screen, it jumps to the opposite edge (though I fear that would also conflict with my camera code).

© Game Development or respective owner

Related posts about c++