Original Post
I get this error: "Object reference not set to an instance of an object.", when I try to run this code: KeyboardState keys = keyboard.GetCurrentKeyboardState(); It works in the tutorial code, and keyboard is my Direct Input device.