Original Post
I cant seem to get mouselook working correctly...
The mouse cursor hits the side of the window and so you cant move it any further to turn the camera...
And the movement seems to slow right down as you get closer to the axis of the camera turning towards the other direction...
[edited by - elis-cool on December 30, 2002 11:33:15 PM]
case WM_MOUSEMOVE:
{
static int iDeltaX = 0, iDeltaY = 0, iLastX = 0, iLastY = 0;
int x = LOWORD(lParam);
int y = HIWORD(lParam);
iDeltaX += iLastX-(x-INIT_WIDTH/2);
iDeltaY += iLastY-(y-INIT_HEIGHT/2);
iLastX = x-INIT_WIDTH/2;
iLastY = y-INIT_HEIGHT/2;
//iDeltaX += (x-INIT_WIDTH/2); // Tryed this as well
//iDeltaY += -(y-INIT_HEIGHT/2);
//SetCursorPos(INIT_WIDTH/2, INIT_HEIGHT/2); // uncommenting this doesnt help either
CVolatile.CAM_SetLookAt((float)iDeltaX, (float)iDeltaY, 0);
}break;