ModifyMouseState
Introduction
The ModifyMouseState event is an event you can add to the Mouse object to set/modify the Microsoft.Xna.Framework.Input.MouseState used by the mouse for positioning and clicking. This is useful if you are working on a platform which does not have mouse input but you would like to simulate mouse input, or if you are working on a platform which requires modifications of the mouse input.
Code Example
The following code can be used in a WPF project to properly set the mouse position. Add the following to your Game's Initialize function:
Add the following implementation:
Last updated