![]() I think what I have to do is somehow constrain the mouse to be inside the window, because even if it triggered a mouse move when my mouse was outside of the window, and still run into the same issue, just at the bounds on my desktop coords instead. Which seems to work pretty well when the mouse is actually inside the window, but as soon as I leave the window it doesn't work. _lookDir.Y -= e.YDelta * _mouseSensitivity _lookDir.X += e.XDelta * _mouseSensitivity Void OnMouseMove(object sender, MouseMoveEventArgs e) I've got my mouse movement set up like this: protected override void OnLoad(EventArgs e) I think I've almost got it, but there's just a few more kinks to work out. I'm trying to implement camera movement for an FPS game.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |