diff --git a/ANX.InputSystem.Windows.XInput/Mouse.cs b/ANX.InputSystem.Windows.XInput/Mouse.cs index 5a96c453..38a37329 100644 --- a/ANX.InputSystem.Windows.XInput/Mouse.cs +++ b/ANX.InputSystem.Windows.XInput/Mouse.cs @@ -30,6 +30,7 @@ namespace ANX.InputSystem.Windows.XInput { this.directInput = new DirectInput(); this.mouse = new MouseX(this.directInput); + this.mouse.Properties.AxisMode = DeviceAxisMode.Absolute; this.mouse.Acquire(); } diff --git a/Samples/TextRendering/Game1.cs b/Samples/TextRendering/Game1.cs index 79f0a020..f8420b62 100644 --- a/Samples/TextRendering/Game1.cs +++ b/Samples/TextRendering/Game1.cs @@ -105,7 +105,8 @@ namespace TextRendering spriteBatch.DrawString(this.debugFont, "This screen is powered by the ANX.Framework!\r\nsecond line", new Vector2(100, 100 + this.debugFont.LineSpacing), Color.Black, 0.0f, new Vector2(1, -1), Vector2.One, SpriteEffects.None, 0.0f); spriteBatch.DrawString(this.debugFont, "This screen is powered by the ANX.Framework!\r\nsecond line", new Vector2(100, 100 + this.debugFont.LineSpacing), Color.Red, 0.0f, Vector2.Zero, Vector2.One, SpriteEffects.None, 1.0f); - + spriteBatch.DrawString(this.debugFont, "Mouse X: "+Mouse.GetState().X, new Vector2(100, 400 ), Color.DarkOrange); + spriteBatch.DrawString(this.debugFont, "Mouse Y:" + Mouse.GetState().Y, new Vector2(100, 500), Color.DarkOrange); spriteBatch.DrawString(this.debugFont, "rotated Text", new Vector2(100, 150), Color.Green, MathHelper.ToRadians(90), Vector2.Zero, 1.0f, SpriteEffects.None, 1.0f); spriteBatch.End();