| InputSettingsMouseCenter Property |
Gets or sets the mouse center for the mouse centering.
Namespace: DigitalRune.Game.InputAssembly: DigitalRune.Game.Input (in DigitalRune.Game.Input.dll) Version: 1.8.0.0 (1.8.0.14467)
Syntax public Vector2F MouseCenter { get; set; }
Public Property MouseCenter As Vector2F
Get
Set
public:
property Vector2F MouseCenter {
Vector2F get ();
void set (Vector2F value);
}
member MouseCenter : Vector2F with get, set
Property Value
Type:
Vector2FThe mouse center in pixels. The default values (300, 300).
Remarks
If
EnableMouseCentering is
, the input
service will reset the mouse position to
MouseCenter in each frame. This is
necessary, for example, for first-person shooters that need only relative mouse input.
See Also