   Getting The Mouse Offset (not position)
  I am attempting to make a mouse look interface for my project, but we are not using Direct Input.  I know that DirectInput has the "dims" state where it will tell you how far the mouse has moved (or would have moved) since its last call, so the dims would return (-1,-1) if the mouse moved up and back 1 pixel.  I cannot find the windows SDK version of such a call.  Is there one that exists, or is there a simple way to implement it?Thanks,Carradine  
  Sure, just check the mouse position in a loop and compare it with the previous mouse position.If I''m not mistaking, it''s done like this:GetCursorPos(&point);    "My basic needs in life are food, love and a C++ compiler"[Project AlterNova] [Novanet];  The problem with doing that, however, is that when the mouse pointer hits the edge of the screen.  Your offsets stop as well since it can no longer move in that direciton anymore.  Direct Input deals with that problem.  Even if I clip the cursor to some corrdinates on the screen, there still and edge, and it still wont give an offset position once it hits that clip edge. ;  In game development, the mouse coordinate changes are tested, as I sayd befor, but after it, the mouse is centered to the middle of the window, to avoid the problem you explained. A tip: you can not center the mouse if the window isn''t active.Do the centering with:SetCursorPos(x,y);(if i''m not mistaking)   "My basic needs in life are food, love and a C++ compiler"[Project AlterNova] [Novanet]