Jump to content
  • Advertisement
Sign in to follow this  
melfesto

[.net] C# dx9 2009 SDK directx directinput

This topic is 3509 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I am new to the forums and just had a trying to get the hang of DX9 in C#. I have programmed before in C++ and i have a ok knowing of c#. I wanted to know if there is any tutorials for just a simple app to aquire a keyboard and just output it to a form text boc or a pic box the keys that are being pressed. I am using VS 2008 and have the latest SDK pack from 2009. Any help would be a giant + . Thanks all in advance and happy coding.

Share this post


Link to post
Share on other sites
Advertisement
I didn't realise he was after basic keyboard input. DirectInput is only recommended for joystick input. Standard Windows Forms have events to read input as benryves pointed out. If you do want to do anything DirectX related then check out SlimDX.

Share this post


Link to post
Share on other sites
thanks guys for your info i will check into that slimD. I wanted to use directX because i want to start getting into that more. I picked up a few books but there examples are out dated and dont compile or have loads of errors. I see alot of threads on XNA but i dont think i want to go that rout because its like they give you everything all rapped up in there own .libs and stuff i kinda want to be able to learn how everything works rather then have it given to me.

Share this post


Link to post
Share on other sites
Ok i still having some problems getting some info on this i checked out the slimDX and its like XNA in a sense that they have there own special .lib you have to use I know it would probably be good to just use it and no reinvent the wheel but I Kinda wanted to do things from scratch. Anyone have any input on this or point me to a working tutorial or documenation. Just trying to get a simple form up that will create a device aquire it and output what keys are pressed.

Share this post


Link to post
Share on other sites
No, there are no tutorials on doing interop with DirectX in order to make use of DirectInput. You can always make use of the DX SDK documentation. You do have the DX SDK, right?

Share this post


Link to post
Share on other sites
yes i have the SDK for the april 2009 I will have to look into that again they are a bit vague.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!