Hi,
im working on 2d shooter in c++ and my mouse cursor jumps from point to point instead of moving fluently.
It’s not a problem when camera is still and im just moving mouse but it is irritating when player/camera moves and i move cursor in the same time - it just jump those small steps.
I know that it’s because i get mouse points as int’s and i can’t find a method to get them in float or real…
So GetCursorPos() and LOWORD/HIWORD sux. Only thing i can think of to get it over is lowering mouse sensitivity in game by dividing those int points by something.
OpenGL is just this: a graphics library. All your mouse-funcs are belong to OS.
Do use DirectInput. You don’t need to include anything heavy like D3DX.