Skip to main content
GameDev.net gamedev.net
🔒 Locked

Problem with Keyboard [MDX]

Started by Kenny77 Jul 29, 2007 at 11:42 AM 0 replies 550+ views
Original Post
Kenny77
Kenny77
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.
Kenny77
Kenny77
Whoops, nevermind, forgot to call the mathod to initialize the input device.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.