开发者

How to pin mouse in center of screen with GLUT?

开发者 https://www.devze.com 2023-02-10 16:27 出处:网络
I want to pin my mouse in middle of screen I mean when user move mouse the only thing that he see is rotation in environment also mouse cursor never reach window border ...

I want to pin my mouse in middle of screen I mean when user move mouse the only thing that he see is rotation in environment also mouse cursor never reach window border ...

I want to handle my camera with mouse but when mouse reach window border or in full screen mode screen bor开发者_JAVA技巧der the mouse position doesn't change but camera should still rotate slow or speedy depend on speed of mouse movement...

How should I solve this problem?


SDL_warpmouse can accomplish this. If you are looking for an OS-specific way to accomplish this, consider viewing SDL's source code.

0

精彩评论

暂无评论...
验证码 换一张
取 消