Original Post
I am trying to get the keyboard to work. I have this code, but when it gets ran it gives me this error, right around the Acquire part. Do i have to reinstall directx, or do I have a different version. That code should work shouldn't it?
public void InitKeyboard()
{
keyb = new Microsoft.DirectX.DirectInput.Device(SystemGuid.Keyboard);
keyb.SetCooperativeLevel(this, CooperativeLevelFlags.Background | CooperativeLevelFlags.NonExclusive);
keyb.Acquire();
}
"An unhandled exception of type 'Microsoft.DirectX.DirectInput.UnsupportedException' occurred in microsoft.directx.directinput.dll"