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.
精彩评论