From e2966f5d1a87c80bcba75f57161c83fc0d05232e Mon Sep 17 00:00:00 2001
From: "SND\\rene87_cp" <SND\rene87_cp@7a4bfd9b-e295-4cbd-a51f-ab472bcf69b7>
Date: Sat, 5 Nov 2011 17:22:36 +0000
Subject: [PATCH] TextRendering with Mouse suport

---
 ANX.InputSystem.Windows.XInput/Mouse.cs | 1 +
 Samples/TextRendering/Game1.cs          | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

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();