Talk:DirectX:DirectInput:Tutorials:VBNET:DX9:Keyboard Handling

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

Why did you use the timer and the tick event instead of using the KeyDown event? It seems to me that the overhead caused by the timer isn't worth it when it only captures an event that is already firing.


I've tried this sample and could not move past the method SetcoopertaiveLevel. I opted for Bacground first and then nonexclusive: KB.SetCooperativeLevel(Me, NonExclusive) but in each case there was an error: ___________ An unhandled exception of type 'System.ArgumentException' occurred in microsoft.directx.directinput.dll

Additional information: Value does not fall within the expected range.

___________

Anyone has a clue why this happens?