From 02bec4f3037c470b6840b6f7418d64aab9bdf4b0 Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 2 May 2012 23:06:41 +0000 Subject: Fixed bug with keyboard offset on screen. --- src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Noddybox.Emulation.Xna.Keyboard') diff --git a/src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs b/src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs index 1b6f61c..7d802da 100644 --- a/src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs +++ b/src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs @@ -216,7 +216,7 @@ namespace Noddybox.Emulation.Xna.Keyboard { KeyboardKey k = keyboard.Definitions[f]; - keymapPos[f] = new Rectangle(k.X, k.Y, k.Width, k.Height); + keymapPos[f] = new Rectangle((int)position.X + k.X, (int)position.Y + k.Y, k.Width, k.Height); keymapState[f] = new KeyState() { -- cgit v1.2.3