Improve mouse movement in First person game
- by brainydexter
In my current FPS game, I have the mouse setup in a way, that it always forces the position of the mouse to be centered at the screen. This gets the job done, but also gets very annoying, since the mouse is "fixed" at the center of the screen.
Here is what I am doing:
get mouse current position
find offset from center of the screen
set mouse current position to center of the screen
apply difference to m_pTransformation (transformation matrix of the player)
Is there a better way to deal with this ?