Hi,
I have a class call CInputHandler, this class is just checking the input. I use WinAPI and the WM_MOUSEMOVE as fallow (in my msg treatment function):
case WM_MOUSEMOVE:
{
event.type = EInputType::MOUSE ;
event.MouseInput.type = EMouseInputType::MOVED ;
event.MouseInput.x = (short)LOWORD(lParam);
event.MouseInput.y = (short)HIWORD(lParam);
gInput->notify(event) ;
return 0;
}
Then later in the code of a first person Camera (CBasicCamera) when I want to check the mouse I just do that:
if ( gInput->hasMouseMoved() )
{
float pitch = gInput->getMouseX() / 150.0f;
float yAngle = gInput->getMouseY() / 150.0f;
}
//REST of the code
I use the same kind of approach for keys and the wheel.
My problem is that the mouse is still too sensitive, in fact even when I don't touch the mouse the camera is moving. Does anybody have an idea of what can cause this ?
If you need some information, please let me know.
Thanks