summaryrefslogtreecommitdiff
path: root/src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs')
-rw-r--r--src/Noddybox.Emulation.Xna.Keyboard/KeyboardDriver.cs2
1 files changed, 1 insertions, 1 deletions
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()
{